A generic property, which is associated with some element. Can be plain Property or a ListProperty, of some type. Generally, the user should not need to interact with these directly, but they are exposed in case someone wants to get clever.
More...
#include <happly.h>
|
| Property (const std::string &name_) |
| Create a new Property with the given name. More...
|
|
virtual void | reserve (size_t capacity)=0 |
| Reserve memory. More...
|
|
virtual void | parseNext (const std::vector< std::string > &tokens, size_t &currEntry)=0 |
| (ASCII reading) Parse out the next value of this property from a list of tokens. More...
|
|
virtual void | readNext (std::istream &stream)=0 |
| (binary reading) Copy the next value of this property from a stream of bits. More...
|
|
virtual void | readNextBigEndian (std::istream &stream)=0 |
| (binary reading) Copy the next value of this property from a stream of bits. More...
|
|
virtual void | writeHeader (std::ostream &outStream)=0 |
| (reading) Write a header entry for this property. More...
|
|
virtual void | writeDataASCII (std::ostream &outStream, size_t iElement)=0 |
| (ASCII writing) write this property for some element to a stream in plaintext More...
|
|
virtual void | writeDataBinary (std::ostream &outStream, size_t iElement)=0 |
| (binary writing) copy the bits of this property for some element to a stream More...
|
|
virtual void | writeDataBinaryBigEndian (std::ostream &outStream, size_t iElement)=0 |
| (binary writing) copy the bits of this property for some element to a stream More...
|
|
virtual size_t | size ()=0 |
| Number of element entries for this property. More...
|
|
virtual std::string | propertyTypeName ()=0 |
| A string naming the type of the property. More...
|
|
A generic property, which is associated with some element. Can be plain Property or a ListProperty, of some type. Generally, the user should not need to interact with these directly, but they are exposed in case someone wants to get clever.
◆ Property()
happly::Property::Property |
( |
const std::string & |
name_ | ) |
|
|
inline |
Create a new Property with the given name.
- Parameters
-
◆ parseNext()
virtual void happly::Property::parseNext |
( |
const std::vector< std::string > & |
tokens, |
|
|
size_t & |
currEntry |
|
) |
| |
|
pure virtual |
(ASCII reading) Parse out the next value of this property from a list of tokens.
- Parameters
-
tokens | The list of property tokens for the element. |
currEntry | Index in to tokens, updated after this property is read. |
Implemented in happly::TypedListProperty< T >, and happly::TypedProperty< T >.
◆ propertyTypeName()
virtual std::string happly::Property::propertyTypeName |
( |
| ) |
|
|
pure virtual |
◆ readNext()
virtual void happly::Property::readNext |
( |
std::istream & |
stream | ) |
|
|
pure virtual |
◆ readNextBigEndian()
virtual void happly::Property::readNextBigEndian |
( |
std::istream & |
stream | ) |
|
|
pure virtual |
◆ reserve()
virtual void happly::Property::reserve |
( |
size_t |
capacity | ) |
|
|
pure virtual |
◆ size()
virtual size_t happly::Property::size |
( |
| ) |
|
|
pure virtual |
◆ writeDataASCII()
virtual void happly::Property::writeDataASCII |
( |
std::ostream & |
outStream, |
|
|
size_t |
iElement |
|
) |
| |
|
pure virtual |
◆ writeDataBinary()
virtual void happly::Property::writeDataBinary |
( |
std::ostream & |
outStream, |
|
|
size_t |
iElement |
|
) |
| |
|
pure virtual |
◆ writeDataBinaryBigEndian()
virtual void happly::Property::writeDataBinaryBigEndian |
( |
std::ostream & |
outStream, |
|
|
size_t |
iElement |
|
) |
| |
|
pure virtual |
◆ writeHeader()
virtual void happly::Property::writeHeader |
( |
std::ostream & |
outStream | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- dense_map/geometry_mapper/include/happly.h