26#ifndef __TERRALIB_DATATYPE_INTERNAL_STRINGPROPERTY_H 
   27#define __TERRALIB_DATATYPE_INTERNAL_STRINGPROPERTY_H 
   30#include "../core/encoding/CharEncoding.h" 
   69                       bool isRequired = 
false,
 
   70                       std::string* defaultValue = 0,
 
  114        std::size_t 
size()
 const { 
return m_size; }
 
An atomic property like an integer or double.
 
It models a property definition.
 
An atomic property like an integer or double.
 
The type for string types: FIXED_STRING, VAR_STRING or STRING.
 
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.
 
StringType
The subtype of string property.
 
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
 
Enumerations of XML module.