Interface that allows to attach various key-value parameters to the underlying object.
More...
|
virtual bool APICALL | RemoveParameter (const uint64 &key)=0 |
| Removes a particular parameter if present. More...
|
|
virtual std::vector< uint64 > APICALL | GetAllParameters () const =0 |
| Get all the keys of the parameters associated with the object. More...
|
|
virtual sizet APICALL | Size () const __NOTHROW__=0 |
| Get the number of parameters associated with the object. More...
|
|
virtual eDataType APICALL | GetDataType (const uint64 &key) const =0 |
| Get the value type of a particular parameter. More...
|
|
|
virtual void APICALL | SetParameter (const uint64 &key, bool value)=0 |
| Add/Change a value of a parameter. More...
|
|
virtual void APICALL | SetParameter (const uint64 &key, uint64 value)=0 |
|
virtual void APICALL | SetParameter (const uint64 &key, int64 value)=0 |
|
virtual void APICALL | SetParameter (const uint64 &key, double value)=0 |
|
virtual void APICALL | SetParameter (const uint64 &key, char value)=0 |
|
virtual void APICALL | SetParameter (const uint64 &key, const char *value)=0 |
|
virtual void APICALL | SetParameter (const uint64 &key, const void *value)=0 |
|
|
virtual bool APICALL | GetParameter (const uint64 &key, bool &value) const =0 |
| Get the value of a parameter if present. More...
|
|
virtual bool APICALL | GetParameter (const uint64 &key, uint64 &value) const =0 |
|
virtual bool APICALL | GetParameter (const uint64 &key, int64 &value) const =0 |
|
virtual bool APICALL | GetParameter (const uint64 &key, double &value) const =0 |
|
virtual bool APICALL | GetParameter (const uint64 &key, char &value) const =0 |
|
virtual bool APICALL | GetParameter (const uint64 &key, const char *&value) const =0 |
|
virtual bool APICALL | GetParameter (const uint64 &key, const void *&value) const =0 |
|
Interface that allows to attach various key-value parameters to the underlying object.
Key is an unsigned 64-bit integer value which can be a char buffer of eight characters also.
- Note
- For all value types except user data ( const void * ) or char buffer ( const char * ) a copy is made and is stored, so the scope is maintained internally. But for user data ( const void * ) or char buffer ( const char * ) its clients responsibility to make sure these pointers remain valid through out the life span of the object or objects derived from it.
Definition at line 32 of file IConfigurable.h.