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 takes a single value (not a list). More...
#include <happly.h>
Public Member Functions | |
TypedProperty (const std::string &name_) | |
Create a new Property with the given name. More... | |
TypedProperty (const std::string &name_, const 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. 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 > | data |
The actual data contained in the property. | |
![]() | |
std::string | name |
A property which takes a single value (not a list).
|
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.
outStream | Stream to write to. |
Implements happly::Property.