A Value representing a generic Property.
More...
#include <unknown.h>
|
| AnyValue () |
| Constructor.
|
|
| ~AnyValue () |
| Destructor.
|
|
bool | get_scalar (const Property &prop, double &value) const |
| Get the scalar value. More...
|
|
bool | set_scalar (const Property &prop, const double &value) |
| Set the scalar value. More...
|
|
bool | get_size (const Property &prop, size_t &size) const |
| Get the size of the list Value. More...
|
|
bool | get_item (const Property &prop, const size_t &num, double &value) const |
| Get an item of the list Value. More...
|
|
bool | set_size (const Property &prop, const size_t &size) |
| Prepare the list Value to recieve a number of items. More...
|
|
bool | set_item (const Property &prop, const size_t &num, const double &value) |
| Set an item of the list Value. More...
|
|
bool | get_string (const Property &prop, char *str) const |
| Get the string Value. More...
|
|
bool | set_string (const Property &prop, const char *str) |
| Set the string Value. More...
|
|
bool | copy (const Property &prop, Value &to, const Property &to_prop) const |
| Copy the data to another Value. More...
|
|
|
char * | data |
| The data value.
|
|
A Value representing a generic Property.
bool PLY::AnyValue::get_item |
( |
const Property & |
prop, |
|
|
const size_t & |
num, |
|
|
double & |
value |
|
) |
| const |
|
virtual |
Get an item of the list Value.
- Parameters
-
| prop | the Property describing the Value. |
| num | the index of the item. |
[out] | value | the value. |
- Returns
- true if the item could be read.
Reimplemented from PLY::Value.
bool PLY::AnyValue::get_scalar |
( |
const Property & |
prop, |
|
|
double & |
value |
|
) |
| const |
|
virtual |
Get the scalar value.
- Parameters
-
- Returns
- true if the Value could be read.
Reimplemented from PLY::Value.
bool PLY::AnyValue::get_size |
( |
const Property & |
prop, |
|
|
size_t & |
size |
|
) |
| const |
|
virtual |
Get the size of the list Value.
- Parameters
-
| prop | the Property describing the Value. |
[out] | size | the size of the list. |
- Returns
- true if the size could be read.
Reimplemented from PLY::Value.
bool PLY::AnyValue::get_string |
( |
const Property & |
prop, |
|
|
char * |
str |
|
) |
| const |
|
virtual |
Get the string Value.
- Parameters
-
| prop | the Property describing the Value. |
[out] | str | the string. This array should be long enough to contain the string. |
- Returns
- true if the string could be read.
Reimplemented from PLY::Value.
bool PLY::AnyValue::set_item |
( |
const Property & |
prop, |
|
|
const size_t & |
num, |
|
|
const double & |
value |
|
) |
| |
|
virtual |
Set an item of the list Value.
- Parameters
-
prop | the Property describing the Value. |
num | the index of the item. |
value | the value. |
- Returns
- true if the item could be written.
Reimplemented from PLY::Value.
bool PLY::AnyValue::set_scalar |
( |
const Property & |
prop, |
|
|
const double & |
value |
|
) |
| |
|
virtual |
Set the scalar value.
- Parameters
-
- Returns
- true if the Value could be set.
Reimplemented from PLY::Value.
bool PLY::AnyValue::set_size |
( |
const Property & |
prop, |
|
|
const size_t & |
size |
|
) |
| |
|
virtual |
Prepare the list Value to recieve a number of items.
- Parameters
-
prop | the Property describing the Value. |
size | the expected size of the list. |
- Returns
- true if the size could be written.
Reimplemented from PLY::Value.
bool PLY::AnyValue::set_string |
( |
const Property & |
prop, |
|
|
const char * |
str |
|
) |
| |
|
virtual |
Set the string Value.
- Parameters
-
- Returns
- true if the string could be written.
Reimplemented from PLY::Value.
The documentation for this struct was generated from the following files: