Go to the documentation of this file.
   26 #ifndef __TERRALIB_DATATYPE_INTERNAL_SIMPLEPROPERTY_H 
   27 #define __TERRALIB_DATATYPE_INTERNAL_SIMPLEPROPERTY_H 
   68                        bool isRequired = 
false,
 
   69                        std::string* defaultValue = 0,
 
  170 #endif  // __TERRALIB_DATATYPE_INTERNAL_SIMPLEPROPERTY_H 
  
 
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.
 
void setDefaultValue(std::string *d)
It sets the default value associated to the property, or NULL if none is associated.
 
virtual Property * clone() const
It returns a clone of the object.
 
void setAutoNumber(bool a)
It tells if the property is an autonumber or not.
 
virtual ~SimpleProperty()
Destructor.
 
bool m_isRequired
This flag indicates if the attribute is required or not.
 
void setRequired(bool r)
It tells if the property is required or not.
 
It models a property definition.
 
bool isRequired() const
It returns true if the attribute is required, otherwise it returns false.
 
An atomic property like an integer or double.
 
std::string * m_defaultValue
Default value.
 
SimpleProperty(const SimpleProperty &rhs)
Copy constructor.
 
std::string * getDefaultValue() const
It returns the default value associated to the property, or NULL if none is associated.
 
SimpleProperty & operator=(const SimpleProperty &rhs)
Assignment operator.
 
It models a property definition.
 
bool isAutoNumber() const
It returns true if the attribute is an autonumber, otherwise it returns false.
 
bool m_isAutoNumber
A flag that indicates if this is an autonumber or serial type.
 
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
 
bool has(Property *p) const
It checks if the Property "p" is associated to this property or any other parent.