Data class for strings.
More...
#include <AftData.h>
|
std::string | _data |
| String data.
|
|
uint32_t | _bitLength |
| Size of encapsulated data in bits.
|
|
AftDataString::AftDataString |
( |
const std::string & |
newString | ) |
|
|
inline |
Constructor for string data.
- Parameters
-
[in] | newString | Reference to string to use for data |
virtual uint32_t AftDataString::append |
( |
AftDataBytes & |
newData | ) |
|
|
inlinevirtual |
Append contents of data object to AftDataBytes vector.
- Parameters
-
[in] | data | Reference to AftDataBytes vector to append to |
Reimplemented from AftData.
virtual int AftDataString::compare |
( |
const AftData & |
aData | ) |
const |
|
inlinevirtual |
Compare data.
- Parameters
-
[in] | aData | Reference to data to compare against |
- Returns
- Zero if data is the same
Reimplemented from AftData.
Factory generator for string data.
- Parameters
-
[in] | newString | Reference to string to use for data |
const std::string& AftDataString::data |
( |
| ) |
const |
|
inline |
- Returns
- Reference to uint8_t based data vector
const uint8_t* AftDataString::dataArray |
( |
| ) |
const |
|
inline |
- Returns
- Reference to base of prefix as uint8_t pointer
virtual const std::string AftDataString::dataClass |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- String description of data type
Reimplemented from AftData.
virtual std::ostream& AftDataString::description |
( |
std::ostream & |
os | ) |
const |
|
inlinevirtual |
Append a description of the data to an output stream.
- Parameters
-
[in] | os | Reference to output stream to append description to |
- Returns
- Reference to output stream with text description of data appended
Reimplemented from AftData.
The documentation for this class was generated from the following file: