]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Parameters.h
3D MPR updated
[cpPlugins.git] / lib / cpPlugins / Interface / Parameters.h
index bbf9dfcb47b12bf0ee89b741a257bbfb6867ca35..1e840f4ed8b102e82c9608895ae567c0c78848f5 100644 (file)
@@ -4,6 +4,7 @@
 #include <map>
 #include <string>
 #include <vector>
+#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 
 namespace cpPlugins
 {
@@ -11,7 +12,7 @@ namespace cpPlugins
   {
     /**
      */
-    class Parameters
+    class cpPlugins_Interface_EXPORT Parameters
     {
     public:
       typedef Parameters Self;
@@ -61,43 +62,25 @@ namespace cpPlugins
       void SetValueAsIndex( const TString& name, const TUint& n, ... );
       void SetValueAsPoint( const TString& name, const TUint& n, ... );
 
-      template< class I >
-      void SetValueAsStringList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsBoolList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsIntList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsUintList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsRealList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsIndexList(
-        const TString& name, const I& b, const I& e
-        );
-
-      template< class I >
-      void SetValueAsPointList(
-        const TString& name, const I& b, const I& e
-        );
-
+      void AddValueToStringList( const TString& name, const TString& v );
+      void AddValueToBoolList( const TString& name, const TBool& v );
+      void AddValueToIntList( const TString& name, const TInt& v );
+      void AddValueToUintList( const TString& name, const TUint& v );
+      void AddValueToRealList( const TString& name, const TReal& v );
+      void AddValueToIndexList( const TString& name, const TUint& n, ... );
+      void AddValueToPointList( const TString& name, const TUint& n, ... );
+
+      void ClearStringList( const TString& name );
+      void ClearBoolList( const TString& name );
+      void ClearIntList( const TString& name );
+      void ClearUintList( const TString& name );
+      void ClearRealList( const TString& name );
+      void ClearIndexList( const TString& name );
+      void ClearPointList( const TString& name );
+      
       std::vector< TString > GetParameters( ) const;
       Self::Type GetParameterType( const TString& name ) const;
+      const TString& GetRawValue( const TString& name ) const;
       const TString& GetValueAsString( const TString& name ) const;
       TBool GetValueAsBool( const TString& name ) const;
       TInt GetValueAsInt( const TString& name ) const;