1 #ifndef __CPPLUGINS__INTERFACE__PARAMETERS__H__
2 #define __CPPLUGINS__INTERFACE__PARAMETERS__H__
17 typedef Parameters Self;
35 typedef std::pair< Self::Type, std::string > TParameter;
36 typedef std::map< std::string, TParameter > TParameters;
38 typedef unsigned long TUint;
43 Parameters( const Self& other );
44 virtual ~Parameters( );
46 Self& operator=( const Self& other );
48 void Configure( const Self::Type& type, const std::string& name );
49 void SetValueAsString( const std::string& name, const std::string& v );
50 void SetValueAsInt( const std::string& name, const TInt& v );
51 void SetValueAsUint( const std::string& name, const TUint& v );
52 void SetValueAsReal( const std::string& name, const TReal& v );
53 void SetValueAsIndex( const std::string& name, const TUint& n, ... );
54 void SetValueAsPoint( const std::string& name, const TUint& n, ... );
57 void SetValueAsStringList(
58 const std::string& name, const I& b, const I& e
62 void SetValueAsIntList(
63 const std::string& name, const I& b, const I& e
67 void SetValueAsUintList(
68 const std::string& name, const I& b, const I& e
72 void SetValueAsRealList(
73 const std::string& name, const I& b, const I& e
77 void SetValueAsIndexList(
78 const std::string& name, const I& b, const I& e
82 void SetValueAsPointList(
83 const std::string& name, const I& b, const I& e
86 const std::string& GetValueAsString( const std::string& name ) const;
87 TInt GetValueAsInt( const std::string& name ) const;
88 TUint GetValueAsUint( const std::string& name ) const;
89 TReal GetValueAsReal( const std::string& name ) const;
92 I GetValueAsIndex( const std::string& name ) const;
95 P GetValueAsPoint( const std::string& name ) const;
97 void GetValueAsStringList(
98 std::vector< std::string >& lst, const std::string& name
100 void GetValueAsIntList(
101 std::vector< TInt >& lst, const std::string& name
103 void GetValueAsUintList(
104 std::vector< TUint >& lst, const std::string& name
106 void GetValueAsRealList(
107 std::vector< TReal >& lst, const std::string& name
111 void GetValueAsIndexList(
112 std::vector< I >& lst, const std::string& name
116 void GetValueAsPointList(
117 std::vector< P >& lst, const std::string& name
122 TParameters m_Parameters;
129 #include <cpPlugins/Interface/Parameters.hxx>
131 #endif // __CPPLUGINS__INTERFACE__PARAMETERS__H__