Abstract interface class for properties of elements in PLY files. More...
#include <PLYProperty.hpp>
Public Member Functions | |
virtual size_t | getCountSize ()=0 |
Returns the size a list count type in bytes. If the property is not a list, the function will return 0. | |
virtual size_t | getValueSize ()=0 |
Returns the size of the property value. | |
virtual string | getCountTypeStr ()=0 |
Returns a string representation of of the used type for lists. Returns an empty string if the element is not a list. | |
virtual string | getElementTypeStr ()=0 |
Returns a string representation of the property's type. | |
string | getName () |
Returns the property's name. | |
size_t | getCount () |
Returns the number of list entries for list properties. | |
virtual bool | isList ()=0 |
Returns true if the property is a list property. | |
Protected Attributes | |
string | m_name |
The property's name. | |
size_t | m_count |
The number of elements in the list (only for list props.). |
Abstract interface class for properties of elements in PLY files.
Definition at line 17 of file PLYProperty.hpp.
size_t lssr::Property::getCount | ( | ) | [inline] |
Returns the number of list entries for list properties.
Definition at line 55 of file PLYProperty.hpp.
virtual size_t lssr::Property::getCountSize | ( | ) | [pure virtual] |
Returns the size a list count type in bytes. If the property is not a list, the function will return 0.
Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.
virtual string lssr::Property::getCountTypeStr | ( | ) | [pure virtual] |
Returns a string representation of of the used type for lists. Returns an empty string if the element is not a list.
Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.
virtual string lssr::Property::getElementTypeStr | ( | ) | [pure virtual] |
Returns a string representation of the property's type.
Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.
string lssr::Property::getName | ( | ) | [inline] |
Returns the property's name.
Definition at line 50 of file PLYProperty.hpp.
virtual size_t lssr::Property::getValueSize | ( | ) | [pure virtual] |
Returns the size of the property value.
Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.
virtual bool lssr::Property::isList | ( | ) | [pure virtual] |
Returns true if the property is a list property.
Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.
size_t lssr::Property::m_count [protected] |
The number of elements in the list (only for list props.).
Definition at line 69 of file PLYProperty.hpp.
string lssr::Property::m_name [protected] |
The property's name.
Definition at line 66 of file PLYProperty.hpp.