PLY reader/writer  1.2.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
PLY::AnyValue Struct Reference

A Value representing a generic Property. More...

#include <unknown.h>

Inheritance diagram for PLY::AnyValue:
PLY::Value

Public Member Functions

 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...
 
- Public Member Functions inherited from PLY::Value
bool copy (const Property &prop, Value &to, const Property &to_prop) const
 Copy the data to another Value. More...
 

Public Attributes

char * data
 The data value.
 

Detailed Description

A Value representing a generic Property.

Member Function Documentation

bool PLY::AnyValue::get_item ( const Property prop,
const size_t &  num,
double &  value 
) const
virtual

Get an item of the list Value.

Parameters
propthe Property describing the Value.
numthe index of the item.
[out]valuethe 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
propthe Property describing the Value.
[out]valuethe value.
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
propthe Property describing the Value.
[out]sizethe 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
propthe Property describing the Value.
[out]strthe 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
propthe Property describing the Value.
numthe index of the item.
valuethe 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
propthe Property describing the Value.
valuethe value.
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
propthe Property describing the Value.
sizethe 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
propthe Property describing the Value.
strthe string value.
Returns
true if the string could be written.

Reimplemented from PLY::Value.


The documentation for this struct was generated from the following files: