26#ifndef __TERRALIB_DATATYPE_INTERNAL_STRINGPROPERTY_H
27#define __TERRALIB_DATATYPE_INTERNAL_STRINGPROPERTY_H
70 std::string* defaultValue = 0,
A class for handling character enconding/decoding.
An atomic property like an integer or double.
It models a property definition.
SimpleProperty(const std::string &name, int datatype, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new simple property.
bool isRequired() const
It returns true if the attribute is required, otherwise it returns false.
Property * clone() const
It returns a clone of the object.
StringProperty(const std::string &name, StringType strType=STRING, std::size_t size=0, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new string property.
~StringProperty()
Destructor.
StringType m_strSubType
The sub-type of this string property.
void setSubtype(StringType t)
It sets the string property sub type.
StringProperty & operator=(const StringProperty &rhs)
Assignment operator.
void setSize(std::size_t s)
It sets the maximum number of characters for a varying string, or the number of characters for a fixe...
std::size_t m_size
Maximum number of characters for a varying string or the number of characters for a fixed length stri...
StringType getSubType() const
It returns the string property sub type.
std::size_t size() const
It returns the maximum number of characters for a varying string, or the number of characters for a f...
StringProperty(const StringProperty &rhs)
Copy constructor.
General enumerations for the data type module.
Namespace for the Data Type module of TerraLib.
StringType
The subtype of string property.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.