26#ifndef __TERRALIB_DATATYPE_INTERNAL_BITPROPERTY_H
27#define __TERRALIB_DATATYPE_INTERNAL_BITPROPERTY_H
62 std::size_t nbits = 1,
64 std::string* defaultValue = 0,
An atomic property like an integer or double.
std::size_t m_nbits
The number of bits represented by the property.
BitProperty(const BitProperty &rhs)
Copy constructor.
std::size_t numBits() const
It returns the number of bits represented in the property.
Property * clone() const
It returns a clone of the object.
~BitProperty()
Destructor.
BitProperty & operator=(const BitProperty &rhs)
Assignment operator.
BitProperty(const std::string &name, std::size_t nbits=1, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new bit property.
void setNumBits(std::size_t s)
It sets the number of bits represented in the property.
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.
Namespace for the Data Type module of TerraLib.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.