cartobase
5.0.5
|
Objects whose value may be represented as a character string. More...
#include <cartobase/object/object.h>
Public Member Functions | |
virtual | ~StringInterface () |
virtual bool | isString () const |
Returns false if the stored object doesn't actually implement the StringInterface API (needed since all GenericObject inherit this interface whatever they actually contain) More... | |
virtual std::string | getString () const =0 |
Obtain a string value, possibly after a conversion. More... | |
virtual void | setString (const std::string &)=0 |
The string value may be converted to the actual storage type before it is set in the contained object. More... | |
virtual bool | operator== (const StringInterface &other) const |
equality test More... | |
virtual bool | operator!= (const StringInterface &other) const |
![]() | |
virtual | ~Interface () |
Objects whose value may be represented as a character string.
|
virtual |
|
pure virtual |
Obtain a string value, possibly after a conversion.
This method may throw an exception if the stored object has not a string-compatible interface
Implemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.
|
virtual |
Returns false if the stored object doesn't actually implement the StringInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
Reimplemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.
|
inlinevirtual |
Definition at line 167 of file object.h.
References operator==().
|
virtual |
equality test
|
pure virtual |
The string value may be converted to the actual storage type before it is set in the contained object.
This method may throw an exception if the stored object has not a string-compatible interface
Implemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.