NEOCCA bindings Specification  0.2.8
ParameterPort.hh
Go to the documentation of this file.
1 #ifndef neo_ParameterPort
2 #define neo_ParameterPort
3 
4 namespace neo {
5 namespace cca {
6 namespace ports {
7 
8 
13 class ParameterPort : public virtual BasicParameterPort
14 {
15 public:
16 
17  virtual ~ParameterPort() {}
18 
19  // BasicParameterPort
20 
22  virtual std::vector< std::string > readConfigurationKeys()= 0;
23 
26 
32 
33  virtual std::string readTitle()= 0;
34  virtual std::vector< std::string > readGroupNames()= 0;
35  virtual std::string readGroupTitle( const std::string & groupName)= 0;
36  virtual std::vector< std::string > readGroupKeys( const std::string & groupName )= 0;
37 
38  virtual std::string readHelp( const std::string & key)= 0;
39  virtual std::string readPrompt( const std::string & key)= 0;
40  virtual bool hasBounds( const std::string & key)= 0;
41  virtual bool hasChoices( const std::string & key)= 0;
42 
43  virtual bool readDefaultBoolean( const std::string & key)= 0;
44  virtual std::string readDefaultString ( const std::string & key)= 0;
45  virtual int32_t readDefaultInt( const std::string & key)= 0;
46  virtual int64_t readDefaultLong( const std::string & key)= 0;
47  virtual float readDefaultFloat ( const std::string & key)= 0;
48  virtual double readDefaultDouble( const std::string & key)= 0;
49  virtual std::complex<float> readDefaultFcomplex( const std::string & key)= 0;
50  virtual std::complex<double> readDefaultDcomplex( const std::string & key)= 0;
51 
52  virtual std::vector< std::string > readDefaultStringArray( const std::string & key)= 0;
53  virtual std::vector< bool > readDefaultBooleanArray( const std::string & key)= 0;
54  virtual std::vector< int32_t > readDefaultIntArray( const std::string & key)= 0;
55  virtual std::vector< int64_t > readDefaultLongArray( const std::string & key)= 0;
56  virtual std::vector< float > readDefaultFloatArray( const std::string & key)= 0;
57  virtual std::vector< double > readDefaultDoubleArray( const std::string & key)= 0;
58  virtual std::vector< std::complex<float> > readDefaultFcomplexArray( const std::string & key)= 0;
59  virtual std::vector< std::complex<double> > readDefaultDcomplexArray( const std::string & key)= 0;
60 
61  virtual void readBoundsInt(const std::string & key, int32_t & low, int32_t & high)= 0;
62  virtual void readBoundsLong(const std::string & key, int64_t & low, int64_t & high)= 0;
63  virtual void readBoundsFloat(const std::string & key, float & low, float & high)= 0;
64  virtual void readBoundsDouble(const std::string & key, double & low, double & high)= 0;
65 
66  virtual std::vector< std::string > readChoicesString(const std::string & key)= 0;
67  virtual std::vector< int32_t > readChoicesInt(const std::string & key)= 0;
68  virtual std::vector< int64_t > readChoicesLong(const std::string & key)= 0;
69  virtual std::vector< float > readChoicesFloat(const std::string & key)= 0;
70  virtual std::vector< double > readChoicesDouble(const std::string & key)= 0;
71  virtual std::vector< std::complex<float> > readChoicesFcomplex(const std::string & key)= 0;
72  virtual std::vector< std::complex<double> > readChoicesDcomplex(const std::string & key)= 0;
73 
74 }; // end interface ParameterPort
75 
76 
77 } // end namespace ports
78 } // end namespace cca
79 } // end namespace neo
80 #endif // neo_ParameterPort
virtual std::string readGroupTitle(const std::string &groupName)=0
virtual void readBoundsLong(const std::string &key, int64_t &low, int64_t &high)=0
virtual std::vector< int64_t > readChoicesLong(const std::string &key)=0
virtual std::vector< std::complex< double > > readChoicesDcomplex(const std::string &key)=0
interface for querying adjustable parameters, their ranges, help strings, groupings for UI purposes...
Definition: ParameterPort.hh:13
virtual std::vector< std::complex< float > > readDefaultFcomplexArray(const std::string &key)=0
virtual void readBoundsDouble(const std::string &key, double &low, double &high)=0
boost::shared_ptr< TypeMap > TypeMap_shared
This (TypeMap_shared) is what everyone declares in component code and noone ever calls new on...
Definition: TypeMap.hh:14
virtual std::vector< std::string > readGroupKeys(const std::string &groupName)=0
virtual double readDefaultDouble(const std::string &key)=0
virtual ~ParameterPort()
Definition: ParameterPort.hh:17
virtual bool readDefaultBoolean(const std::string &key)=0
virtual std::string readDefaultString(const std::string &key)=0
virtual std::vector< double > readChoicesDouble(const std::string &key)=0
virtual int64_t readDefaultLong(const std::string &key)=0
virtual std::vector< double > readDefaultDoubleArray(const std::string &key)=0
virtual void writeConfigurationMap(neo::cca::TypeMap_shared tm)=0
take values from the modifed map, tm, and copy them to the internal map of the given name...
virtual std::string readTitle()=0
virtual bool hasBounds(const std::string &key)=0
This class extends the STL std::exception to allow the thrower to specify the message that the stl sa...
Definition: Exception.hh:48
virtual std::vector< std::complex< float > > readChoicesFcomplex(const std::string &key)=0
virtual std::vector< std::string > readChoicesString(const std::string &key)=0
virtual std::vector< std::string > readConfigurationKeys()=0
return the names of available parameter maps.
virtual void readBoundsFloat(const std::string &key, float &low, float &high)=0
virtual std::string readHelp(const std::string &key)=0
virtual std::complex< float > readDefaultFcomplex(const std::string &key)=0
virtual std::vector< int32_t > readChoicesInt(const std::string &key)=0
virtual std::vector< float > readChoicesFloat(const std::string &key)=0
virtual std::vector< bool > readDefaultBooleanArray(const std::string &key)=0
virtual void readBoundsInt(const std::string &key, int32_t &low, int32_t &high)=0
virtual std::vector< std::string > readGroupNames()=0
virtual std::complex< double > readDefaultDcomplex(const std::string &key)=0
virtual float readDefaultFloat(const std::string &key)=0
virtual bool hasChoices(const std::string &key)=0
virtual int32_t readDefaultInt(const std::string &key)=0
virtual std::vector< float > readDefaultFloatArray(const std::string &key)=0
simple version just exposing the typemap.
Definition: BasicParameterPort.hh:14
virtual std::vector< std::string > readDefaultStringArray(const std::string &key)=0
virtual std::vector< int32_t > readDefaultIntArray(const std::string &key)=0
virtual std::vector< int64_t > readDefaultLongArray(const std::string &key)=0
virtual neo::cca::TypeMap_shared readConfigurationMap()=0
return a copy of the named map, for the caller to modify.
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62
virtual std::vector< std::complex< double > > readDefaultDcomplexArray(const std::string &key)=0
virtual std::string readPrompt(const std::string &key)=0