Public Member Functions | Protected Attributes

lssr::Property Class Reference

Abstract interface class for properties of elements in PLY files. More...

#include <PLYProperty.hpp>

Inheritance diagram for lssr::Property:
Inheritance graph
[legend]
Collaboration diagram for lssr::Property:
Collaboration graph
[legend]

List of all members.

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.).

Detailed Description

Abstract interface class for properties of elements in PLY files.

Definition at line 17 of file PLYProperty.hpp.


Member Function Documentation

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 >.

Here is the caller graph for this function:

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 >.

Here is the caller graph for this function:

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 >.

Here is the caller graph for this function:

string lssr::Property::getName (  )  [inline]

Returns the property's name.

Definition at line 50 of file PLYProperty.hpp.

Here is the caller graph for this function:

virtual size_t lssr::Property::getValueSize (  )  [pure virtual]

Returns the size of the property value.

Implemented in lssr::ScalarProperty< ElementT >, and lssr::ListProperty< ListT >.

Here is the caller graph for this function:

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 >.

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Defines