ISAAC
0.2.11
Flight software for the ISAAC project, adding functionality to the Astrobee robot, operating inside the International Space Station.
|
A property which is a list of value (eg, 3 doubles). Note that lists are always variable length per-element. More...
#include <happly.h>
Public Member Functions | |
TypedListProperty (const std::string &name_, int listCountBytes_) | |
Create a new Property with the given name. More... | |
TypedListProperty (const std::string &name_, const std::vector< std::vector< T >> &data_) | |
Create a new property and initialize with data. More... | |
virtual void | reserve (size_t capacity) override |
Reserve memory. More... | |
virtual void | parseNext (const std::vector< std::string > &tokens, size_t &currEntry) override |
(ASCII reading) Parse out the next value of this property from a list of tokens. More... | |
virtual void | readNext (std::istream &stream) override |
(binary reading) Copy the next value of this property from a stream of bits. More... | |
virtual void | readNextBigEndian (std::istream &stream) override |
(binary reading) Copy the next value of this property from a stream of bits. More... | |
virtual void | writeHeader (std::ostream &outStream) override |
(reading) Write a header entry for this property. Note that we already use "uchar" for the list count type. More... | |
virtual void | writeDataASCII (std::ostream &outStream, size_t iElement) override |
(ASCII writing) write this property for some element to a stream in plaintext More... | |
virtual void | writeDataBinary (std::ostream &outStream, size_t iElement) override |
(binary writing) copy the bits of this property for some element to a stream More... | |
virtual void | writeDataBinaryBigEndian (std::ostream &outStream, size_t iElement) override |
(binary writing) copy the bits of this property for some element to a stream More... | |
virtual size_t | size () override |
Number of element entries for this property. More... | |
virtual std::string | propertyTypeName () override |
A string naming the type of the property. More... | |
![]() | |
Property (const std::string &name_) | |
Create a new Property with the given name. More... | |
Public Attributes | |
std::vector< T > | flattenedData |
The (flattened) data for the property, as formed by concatenating all of the individual element lists together. | |
std::vector< size_t > | flattenedIndexStart |
Indices in to flattenedData. The i'th element gives the index in to flattenedData where the element's data begins. A final entry is included which is the length of flattenedData. Size is N_elem + 1. | |
int | listCountBytes = -1 |
The number of bytes used to store the count for lists of data. | |
![]() | |
std::string | name |
A property which is a list of value (eg, 3 doubles). Note that lists are always variable length per-element.
|
inline |
Create a new Property with the given name.
name_ |
|
inline |
Create a new property and initialize with data.
name_ | |
data_ |
|
inlineoverridevirtual |
(ASCII reading) Parse out the next value of this property from a list of tokens.
tokens | The list of property tokens for the element. |
currEntry | Index in to tokens, updated after this property is read. |
Implements happly::Property.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
(binary reading) Copy the next value of this property from a stream of bits.
stream | Stream to read from. |
Implements happly::Property.
|
inlineoverridevirtual |
(binary reading) Copy the next value of this property from a stream of bits.
stream | Stream to read from. |
Implements happly::Property.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
(ASCII writing) write this property for some element to a stream in plaintext
outStream | Stream to write to. |
iElement | index of the element to write. |
Implements happly::Property.
|
inlineoverridevirtual |
(binary writing) copy the bits of this property for some element to a stream
outStream | Stream to write to. |
iElement | index of the element to write. |
Implements happly::Property.
|
inlineoverridevirtual |
(binary writing) copy the bits of this property for some element to a stream
outStream | Stream to write to. |
iElement | index of the element to write. |
Implements happly::Property.
|
inlineoverridevirtual |
(reading) Write a header entry for this property. Note that we already use "uchar" for the list count type.
outStream | Stream to write to. |
Implements happly::Property.