#include <BAttributeDef.h>
This object defines the properties of a BAttribute, but it does not contain any data for the BAttribute.
Public Member Functions | |
| BAttributeDef (const BAttributeDef &attributeDef) | |
| Copy constructor. | |
| BAttributeDef (const BString &name, EVariantType type, int width=0, int precision=0) | |
| Constructor that specifies all properties for a BAttributeDef. | |
| BAttributeDef () | |
| Default constructor. | |
| virtual BAttributeDef * | Clone (void) const |
| Creates a deep-copy of this object. | |
| const BString & | GetName (void) const |
| Gets the name of the BAttribute defined by this BAttributeDef. | |
| int | GetPrecision (void) const |
| Gets the precision of the BAttribute defined by this BAttributeDef. | |
| EVariantType | GetType (void) const |
| Gets the type of data that can be contained in the BAttribute defined by this BAttributeDef. | |
| int | GetWidth (void) const |
| Gets the width of the BAttribute defined by this BAttributeDef. | |
| bool | operator!= (const BAttributeDef &rhs) const |
| Inequality operator. | |
| BAttributeDef & | operator= (const BAttributeDef &rhs) |
| Assignment operator. | |
| bool | operator== (const BAttributeDef &rhs) const |
| Equality operator. | |
| void | SetName (const BString &name) |
| Sets the name for the BAttribute defined by this BAttributeDef. | |
| void | SetPrecision (int precision) |
| Sets the precision of the BAttribute defined by this BAttributeDef. | |
| void | SetType (EVariantType type) |
| Sets the type of data that can be contained in the BAttribute defined by this BAttributeDef. | |
| void | SetWidth (int width) |
| Sets the width of the BAttribute defined by this BAttributeDef. | |
| virtual | ~BAttributeDef () |
| Destructor. | |
| BAttributeDef | ( | ) | [inline] |
Default constructor.
This constructor will create an empty attribute definition.
| BAttributeDef | ( | const BString & | name, | |
| EVariantType | type, | |||
| int | width = 0, |
|||
| int | precision = 0 | |||
| ) | [inline] |
Constructor that specifies all properties for a BAttributeDef.
| name | The BAttribute name. | |
| type | The type of data that can be stored in the BAttribute. | |
| width | The BAttribute data width. | |
| precision | The BAttribute data precision (for floating point data only). |
| BAttributeDef | ( | const BAttributeDef & | attributeDef | ) |
| virtual ~BAttributeDef | ( | ) | [inline, virtual] |
Destructor.
| virtual BAttributeDef* Clone | ( | void | ) | const [inline, virtual] |
Creates a deep-copy of this object.
| const BString& GetName | ( | void | ) | const [inline] |
| int GetPrecision | ( | void | ) | const [inline] |
Gets the precision of the BAttribute defined by this BAttributeDef.
The precision is only used when the BAttribute will store floating point data.
| EVariantType GetType | ( | void | ) | const [inline] |
Gets the type of data that can be contained in the BAttribute defined by this BAttributeDef.
| int GetWidth | ( | void | ) | const [inline] |
Gets the width of the BAttribute defined by this BAttributeDef.
| bool operator!= | ( | const BAttributeDef & | rhs | ) | const [inline] |
Inequality operator.
| rhs | The BAttributeDef to compare to this one. |
| BAttributeDef& operator= | ( | const BAttributeDef & | rhs | ) |
Assignment operator.
| rhs | The AttributeDef whose value will be copied into this one. |
| bool operator== | ( | const BAttributeDef & | rhs | ) | const |
Equality operator.
| rhs | The BAttributeDef to compare to this one. |
| void SetName | ( | const BString & | name | ) | [inline] |
Sets the name for the BAttribute defined by this BAttributeDef.
| name | The new name for the BAttribute. |
| void SetPrecision | ( | int | precision | ) | [inline] |
Sets the precision of the BAttribute defined by this BAttributeDef.
The precision is only used when the BAttribute will store floating point data.
| precision | The data precision (for floating point attributes only). |
| void SetType | ( | EVariantType | type | ) |
Sets the type of data that can be contained in the BAttribute defined by this BAttributeDef.
| type | The data type for the BAttribute. |
| void SetWidth | ( | int | width | ) | [inline] |
Sets the width of the BAttribute defined by this BAttributeDef.
| width | The width of the BAttribute. |