This feature attribute stores strings. More...
#include <ilviews/maps/attribute/stringattr.h>
Public Member Functions | |
IlvStringAttribute () | |
Initializes a new empty string attribute. | |
IlvStringAttribute (const char *value, IlBoolean copy=IlTrue) | |
Initializes a new string attribute. More... | |
IlvStringAttribute (const IlvStringAttribute &source) | |
Creates a string attribute by copying an existing one. More... | |
virtual IlvFeatureAttribute * | copy () const |
Copies this object. More... | |
const char * | getValue () const |
Returns the value of the attribute. More... | |
void | setValue (const char *value, IlBoolean copy=IlTrue) |
Sets the new string. More... | |
Public Member Functions inherited from IlvFeatureAttribute | |
void | save (IlvOutputFile &file) const |
Saves the object to an IlvOutputFile . More... | |
virtual void | write (IlvOutputFile &output) const =0 |
Writes the object to an IlvOutputFile object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvFeatureAttribute | |
static IlvFeatureAttribute * | Load (IlvInputFile &file) |
Loads an attribute from an IlvInputFile . More... | |
Protected Member Functions inherited from IlvFeatureAttribute | |
IlvFeatureAttribute () | |
Constructor. More... | |
This feature attribute stores strings.
Library: ilvmaps
Initializes a new string attribute.
value | the string to be created. |
copy | if set to IlTrue , the value passed as argument is copied. |
IlvStringAttribute::IlvStringAttribute | ( | const IlvStringAttribute & | source | ) |
Creates a string attribute by copying an existing one.
source | The object to be copied. |
|
virtual |
const char* IlvStringAttribute::getValue | ( | ) | const |
Returns the value of the attribute.
0
if no string is affected by the attribute.