A Value representing a Property. More...
#include <object.h>
Public Member Functions | |
bool | copy (const Property &prop, Value &to, const Property &to_prop) const |
Copy the data to another Value. More... | |
Methods for scalar Values. | |
virtual bool | get_scalar (const Property &prop, double &value) const |
Get the scalar value. More... | |
virtual bool | set_scalar (const Property &prop, const double &value) |
Set the scalar value. More... | |
Methods for list Values. | |
virtual bool | get_size (const Property &prop, size_t &size) const |
Get the size of the list Value. More... | |
virtual bool | get_item (const Property &prop, const size_t &num, double &value) const |
Get an item of the list Value. More... | |
virtual bool | set_size (const Property &prop, const size_t &size) |
Prepare the list Value to recieve a number of items. More... | |
virtual bool | set_item (const Property &prop, const size_t &num, const double &value) |
Set an item of the list Value. More... | |
Methods for string Values. | |
virtual bool | get_string (const Property &prop, char *str) const |
Get the string Value. More... | |
virtual bool | set_string (const Property &prop, const char *str) |
Set the string Value. More... | |
A Value representing a Property.
Note that a Property describes how the Value should be interpreted.
|
inlinevirtual |
Get an item of the list Value.
Reimplemented in PLY::AnyValue.
|
inlinevirtual |
Get the scalar value.
Reimplemented in PLY::FloatValue, and PLY::AnyValue.
|
inlinevirtual |
Get the size of the list Value.
Reimplemented in PLY::AnyValue.
|
inlinevirtual |
Get the string Value.
prop | the Property describing the Value. | |
[out] | str | the string. This array should be long enough to contain the string. |
Reimplemented in PLY::AnyValue.
|
inlinevirtual |
Set an item of the list Value.
Reimplemented in PLY::AnyValue.
|
inlinevirtual |
Set the scalar value.
Reimplemented in PLY::FloatValue, and PLY::AnyValue.
|
inlinevirtual |
Prepare the list Value to recieve a number of items.
Reimplemented in PLY::AnyValue.
|
inlinevirtual |