The description of an Element in the Header. More...
#include <header.h>
Public Member Functions | |
Element () | |
Default constructor. | |
Element (const char *n) | |
Instantiated constructor. More... | |
void | add_property (const Property &prop) |
Add a Property to the Element. More... | |
bool | find_index (const char *name, size_t &index) const |
Find the index of a Property. More... | |
Property * | find_property (const char *name) |
Find a Property. More... | |
Public Attributes | |
std::string | name |
The name of the Element. | |
size_t | num |
Number of Objects of the Element. | |
std::vector< Property > | props |
Vector of Properties of the Element. | |
bool | store |
Whether to store this Element. | |
The description of an Element in the Header.
Each Element contains a number of Properties. These Properties should be described in the Header.
Note that an Element does not contain any actual data, only the description of how this data is organized. The data itself is stored in an Object.
|
inline |
Instantiated constructor.
n | the name of the Element. |
|
inline |
bool PLY::Element::find_index | ( | const char * | name, |
size_t & | index | ||
) | const |
Property * PLY::Element::find_property | ( | const char * | name) |