1 #ifndef __CPPLUGINS__INTERFACE__PARAMETERS__HXX__
2 #define __CPPLUGINS__INTERFACE__PARAMETERS__HXX__
6 // -------------------------------------------------------------------------
8 void cpPlugins::Interface::Parameters::
9 SetValueAsStringList( const std::string& name, const I& b, const I& e )
11 TParameters::iterator pIt = this->m_Parameters.find( name );
12 if( pIt == this->m_Parameters.end( ) )
14 if( pIt->second.first != Self::StringList )
18 for( I i = b; i != e; ++i )
20 pIt->second = ss.str( );
23 // -------------------------------------------------------------------------
25 void cpPlugins::Interface::Parameters::
26 SetValueAsIntList( const std::string& name, const I& b, const I& e )
28 TParameters::iterator pIt = this->m_Parameters.find( name );
29 if( pIt == this->m_Parameters.end( ) )
31 if( pIt->second.first != Self::IntList )
35 for( I i = b; i != e; ++i )
37 pIt->second = ss.str( );
40 // -------------------------------------------------------------------------
42 void cpPlugins::Interface::Parameters::
43 SetValueAsUintList( const std::string& name, const I& b, const I& e )
45 TParameters::iterator pIt = this->m_Parameters.find( name );
46 if( pIt == this->m_Parameters.end( ) )
48 if( pIt->second.first != Self::UintList )
52 for( I i = b; i != e; ++i )
54 pIt->second = ss.str( );
57 // -------------------------------------------------------------------------
59 void cpPlugins::Interface::Parameters::
60 SetValueAsRealList( const std::string& name, const I& b, const I& e )
62 TParameters::iterator pIt = this->m_Parameters.find( name );
63 if( pIt == this->m_Parameters.end( ) )
65 if( pIt->second.first != Self::RealList )
69 for( I i = b; i != e; ++i )
71 pIt->second = ss.str( );
74 // -------------------------------------------------------------------------
76 void cpPlugins::Interface::Parameters::
77 SetValueAsIndexList( const std::string& name, const I& b, const I& e )
82 // -------------------------------------------------------------------------
84 void cpPlugins::Interface::Parameters::
85 SetValueAsPointList( const std::string& name, const I& b, const I& e )
90 // -------------------------------------------------------------------------
92 I cpPlugins::Interface::Parameters::
93 GetValueAsIndex( const std::string& name ) const
95 TParameters::iterator pIt = this->m_Parameters.find( name );
96 if( pIt == this->m_Parameters.end( ) )
98 if( pIt->second.first != Self::Index )
105 // -------------------------------------------------------------------------
107 P cpPlugins::Interface::Parameters::
108 GetValueAsPoint( const std::string& name ) const
110 TParameters::iterator pIt = this->m_Parameters.find( name );
111 if( pIt == this->m_Parameters.end( ) )
113 if( pIt->second.first != Self::Point )
120 // -------------------------------------------------------------------------
122 void cpPlugins::Interface::Parameters::
123 GetValueAsIndexList( std::vector< I >& lst, const std::string& name ) const
126 TParameters::iterator pIt = this->m_Parameters.find( name );
127 if( pIt == this->m_Parameters.end( ) )
129 if( pIt->second.first != Self::IndexList )
135 // -------------------------------------------------------------------------
137 void cpPlugins::Interface::Parameters::
138 GetValueAsPointList( std::vector< P >& lst, const std::string& name ) const
141 TParameters::iterator pIt = this->m_Parameters.find( name );
142 if( pIt == this->m_Parameters.end( ) )
144 if( pIt->second.first != Self::PointList )
150 #endif // __CPPLUGINS__INTERFACE__PARAMETERS__HXX__