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

An example Value: a float. More...

#include <example.h>

Inheritance diagram for PLY::FloatValue:
PLY::Value

Public Member Functions

 FloatValue ()
 Default constructor.
 
 FloatValue (const float &v)
 Instantiated constructor. More...
 
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...
 
- 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...
 
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...
 
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...
 

Public Attributes

float val
 The data value;.
 

Detailed Description

An example Value: a float.

Constructor & Destructor Documentation

PLY::FloatValue::FloatValue ( const float &  v)
inline

Instantiated constructor.

Parameters
vthe value.

Member Function Documentation

bool PLY::FloatValue::get_scalar ( const Property prop,
double &  value 
) const
inlinevirtual

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::FloatValue::set_scalar ( const Property prop,
const double &  value 
)
inlinevirtual

Set the scalar value.

Parameters
propthe Property describing the Value.
valuethe value.
Returns
true if the Value could be set.

Reimplemented from PLY::Value.


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