F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Types/StringType.hpp>
Public Member Functions | |
virtual const CHAR * | toChar () const =0 |
virtual NATIVE_UINT_TYPE | getCapacity () const =0 |
return size of buffer | |
NATIVE_UINT_TYPE | length () const |
Get length of string. | |
const CHAR * | operator+= (const CHAR *src) |
Concatenate a CHAR*. | |
const StringBase & | operator+= (const StringBase &src) |
Concatenate a StringBase. | |
bool | operator== (const StringBase &other) const |
Check for equality with StringBase. | |
bool | operator== (const CHAR *other) const |
Check for equality with CHAR*. | |
bool | operator!= (const StringBase &other) const |
Inequality with StringBase. | |
bool | operator!= (const CHAR *other) const |
Inequality with CHAR*. | |
StringBase & | operator= (const CHAR *src) |
Assign CHAR*. | |
StringBase & | operator= (const StringBase &src) |
Assign another StringBase. | |
void | format (const CHAR *formatString,...) |
write formatted string to buffer | |
virtual SerializeStatus | serialize (SerializeBufferBase &buffer) const |
serialization function | |
virtual SerializeStatus | serialize (SerializeBufferBase &buffer, NATIVE_UINT_TYPE maxLen) const |
serialization function | |
virtual SerializeStatus | deserialize (SerializeBufferBase &buffer) |
deserialization function | |
virtual SerializeStatus | serialize (SerializeBufferBase &buffer) const =0 |
serialize contents | |
virtual SerializeStatus | deserialize (SerializeBufferBase &buffer)=0 |
deserialize to contents | |
Protected Member Functions | |
StringBase () | |
virtual | ~StringBase () |
void | appendBuff (const CHAR *buff, NATIVE_UINT_TYPE size) |
Protected Member Functions inherited from Fw::Serializable | |
Serializable () | |
Default constructor. | |
virtual | ~Serializable () |
destructor | |
Definition at line 23 of file StringType.hpp.
|
protected |
Definition at line 22 of file StringType.cpp.
|
protectedvirtual |
Definition at line 25 of file StringType.cpp.
|
protected |
Definition at line 110 of file StringType.cpp.
|
virtual |
deserialization function
Implements Fw::Serializable.
Reimplemented in Fw::LogStringArg, and Fw::TlmString.
Definition at line 136 of file StringType.cpp.
void Fw::StringBase::format | ( | const CHAR * | formatString, |
... | |||
) |
write formatted string to buffer
Definition at line 60 of file StringType.cpp.
|
pure virtual |
return size of buffer
Implemented in Fw::CmdStringArg, Fw::TextLogString, Fw::ParamString, Fw::EightyCharString, Fw::InternalInterfaceString, Fw::String, Os::QueueString, Os::TaskString, Fw::LogStringArg, and Fw::TlmString.
NATIVE_UINT_TYPE Fw::StringBase::length | ( | ) | const |
Get length of string.
Definition at line 123 of file StringType.cpp.
bool Fw::StringBase::operator!= | ( | const CHAR * | other | ) | const |
Inequality with CHAR*.
Definition at line 76 of file StringType.cpp.
bool Fw::StringBase::operator!= | ( | const StringBase & | other | ) | const |
Inequality with StringBase.
Definition at line 72 of file StringType.cpp.
Concatenate a CHAR*.
Definition at line 28 of file StringType.cpp.
const StringBase & Fw::StringBase::operator+= | ( | const StringBase & | src | ) |
Concatenate a StringBase.
Definition at line 33 of file StringType.cpp.
StringBase & Fw::StringBase::operator= | ( | const CHAR * | src | ) |
Assign CHAR*.
Definition at line 105 of file StringType.cpp.
StringBase & Fw::StringBase::operator= | ( | const StringBase & | src | ) |
Assign another StringBase.
Definition at line 94 of file StringType.cpp.
bool Fw::StringBase::operator== | ( | const CHAR * | other | ) | const |
Check for equality with CHAR*.
Definition at line 47 of file StringType.cpp.
bool Fw::StringBase::operator== | ( | const StringBase & | other | ) | const |
Check for equality with StringBase.
Definition at line 38 of file StringType.cpp.
|
virtual |
serialization function
Implements Fw::Serializable.
Reimplemented in Fw::LogStringArg, and Fw::TlmString.
Definition at line 127 of file StringType.cpp.
|
virtual |
serialization function
Reimplemented in Fw::LogStringArg, and Fw::TlmString.
Definition at line 131 of file StringType.cpp.
|
pure virtual |