#include <DataSet.h>
Public Member Functions | |
| DataObject (DataSet *parent_set) | |
| void | eraseProperty (DataProperty *property) |
| void | setProperty (DataProperty *property, string s_value, int is_approximate=-1) |
| void | setNonlocalizedKeyProperty (DataProperty *property, string s_value) |
| const MathStructure * | getPropertyStruct (DataProperty *property) |
| const string & | getProperty (DataProperty *property, int *is_approximate=NULL) |
| const string & | getNonlocalizedKeyProperty (DataProperty *property) |
| string | getPropertyInputString (DataProperty *property) |
| string | getPropertyDisplayString (DataProperty *property) |
| bool | isUserModified () const |
| void | setUserModified (bool user_modified=true) |
| DataSet * | parentSet () const |
Protected Attributes | |
| vector< DataProperty * > | properties |
| vector< string > | s_properties |
| vector< string > | s_nonlocalized_properties |
| vector< MathStructure * > | m_properties |
| vector< int > | a_properties |
| DataSet * | parent |
| bool | b_uchanged |
Data objects consist of property-value pairs.
|
|
Create a data object.
|
|
|
Unset (erase value) a property.
|
|
|
Returns unparsed untranslated value for a key property. Used when a text value is translated, but the original value still is needed as a reference key.
|
|
||||||||||||
|
Returns unparsed value for a property.
|
|
|
Returns value for a property in a format suitable for display with unit appended.
|
|
|
Returns value for a property in a format suitable for use in expressions with unit appended.
|
|
|
Returns parsed value for a property. Parses the text string value if not parsed before
|
|
|
If the object has been modified by the end user (if setUserModified() has been called).
|
|
|
Returns the data set that the object belongs to.
|
|
||||||||||||
|
Set an untranslated value for a key property. Used when a text value is translated, but the original value still is needed as a reference key.
|
|
||||||||||||||||
|
Set value for a property.
|
|
|
Specify if the object has been modified by the end user.
|
1.4.3