![]() |
F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <cmake-build-debug/fpp-tools/src/docs/users-guide/examples/impl-abs-type/Fw/Types/StringType.hpp>
Public Member Functions | |
virtual const char * | toChar (void) const =0 |
virtual NATIVE_UINT_TYPE | length (void) const =0 |
Get length of string. More... | |
const char * | operator+= (const char *src) |
Concatenate a char*. More... | |
const StringBase & | operator+= (const StringBase &src) |
Concatenate a StringBase. More... | |
bool | operator== (const StringBase &other) const |
Check for equality with StringBase. More... | |
bool | operator== (const char *other) const |
Check for equality with char*. More... | |
bool | operator!= (const StringBase &other) const |
Inequality with StringBase. More... | |
bool | operator!= (const char *other) const |
Inequality with char*. More... | |
const char * | operator= (const char *src) |
Assign char*. More... | |
const StringBase & | operator= (const StringBase &src) |
Assign another StringBase. More... | |
void | appendBuff (const char *buff, NATIVE_UINT_TYPE size) |
void | format (const char *formatString,...) |
write formatted string to buffer More... | |
virtual const CHAR * | toChar () const =0 |
virtual NATIVE_UINT_TYPE | getCapacity () const =0 |
return size of buffer More... | |
NATIVE_UINT_TYPE | length () const |
Get length of string. More... | |
const CHAR * | operator+= (const CHAR *src) |
Concatenate a CHAR*. More... | |
const StringBase & | operator+= (const StringBase &src) |
Concatenate a StringBase. More... | |
bool | operator== (const StringBase &other) const |
Check for equality with StringBase. More... | |
bool | operator== (const CHAR *other) const |
Check for equality with CHAR*. More... | |
bool | operator!= (const StringBase &other) const |
Inequality with StringBase. More... | |
bool | operator!= (const CHAR *other) const |
Inequality with CHAR*. More... | |
StringBase & | operator= (const CHAR *src) |
Assign CHAR*. More... | |
StringBase & | operator= (const StringBase &src) |
Assign another StringBase. More... | |
void | format (const CHAR *formatString,...) |
write formatted string to buffer More... | |
virtual SerializeStatus | serialize (SerializeBufferBase &buffer) const |
serialization function More... | |
virtual SerializeStatus | serialize (SerializeBufferBase &buffer, NATIVE_UINT_TYPE maxLen) const |
serialization function More... | |
virtual SerializeStatus | deserialize (SerializeBufferBase &buffer) |
deserialization function More... | |
Protected Member Functions | |
StringBase (void) | |
virtual | ~StringBase (void) |
virtual void | copyBuff (const char *buff, NATIVE_UINT_TYPE size)=0 |
virtual NATIVE_UINT_TYPE | getCapacity (void) const =0 |
return size of buffer More... | |
StringBase () | |
virtual | ~StringBase () |
void | appendBuff (const CHAR *buff, NATIVE_UINT_TYPE size) |
![]() | |
Serializable () | |
Default constructor. More... | |
virtual | ~Serializable () |
destructor More... | |
Serializable () | |
Default constructor. More... | |
virtual | ~Serializable () |
destructor More... | |
Definition at line 23 of file StringType.hpp.
|
protected |
Definition at line 23 of file StringType.cpp.
|
protectedvirtual |
Definition at line 26 of file StringType.cpp.
|
protected |
|
protectedvirtual |
void Fw::StringBase::appendBuff | ( | const char * | buff, |
NATIVE_UINT_TYPE | size | ||
) |
Definition at line 105 of file StringType.cpp.
|
protected |
|
protectedpure virtual |
|
virtual |
deserialization function
Implements Fw::Serializable.
Reimplemented in Fw::LogStringArg, Fw::TlmString, and Fw::EightyCharString.
Definition at line 136 of file StringType.cpp.
void Fw::StringBase::format | ( | const CHAR * | formatString, |
... | |||
) |
write formatted string to buffer
void Fw::StringBase::format | ( | const char * | formatString, |
... | |||
) |
write formatted string to buffer
Definition at line 61 of file StringType.cpp.
|
pure virtual |
return size of buffer
Implemented in Fw::LogStringArg, Fw::TlmString, Fw::CmdStringArg, Fw::TextLogString, Fw::ParamString, Fw::EightyCharString, Fw::InternalInterfaceString, Fw::String, Os::QueueString, and Os::TaskString.
|
protectedpure virtual |
return size of buffer
Implemented in Fw::LogStringArg, Fw::TlmString, Fw::CmdStringArg, Fw::TextLogString, Fw::ParamString, Fw::EightyCharString, Fw::InternalInterfaceString, Fw::String, Os::QueueString, and Os::TaskString.
NATIVE_UINT_TYPE Fw::StringBase::length | ( | ) | const |
Get length of string.
|
pure virtual |
Get length of string.
Implemented in Fw::EightyCharString.
Definition at line 123 of file StringType.cpp.
bool Fw::StringBase::operator!= | ( | const char * | other | ) | const |
Inequality with char*.
Definition at line 77 of file StringType.cpp.
bool Fw::StringBase::operator!= | ( | const CHAR * | other | ) | const |
Inequality with CHAR*.
bool Fw::StringBase::operator!= | ( | const StringBase & | other | ) | const |
Inequality with StringBase.
Definition at line 73 of file StringType.cpp.
bool Fw::StringBase::operator!= | ( | const StringBase & | other | ) | const |
Inequality with StringBase.
const CHAR * Fw::StringBase::operator+= | ( | const char * | src | ) |
Concatenate a char*.
Definition at line 29 of file StringType.cpp.
const StringBase & Fw::StringBase::operator+= | ( | const StringBase & | src | ) |
Concatenate a StringBase.
Definition at line 34 of file StringType.cpp.
const StringBase& Fw::StringBase::operator+= | ( | const StringBase & | src | ) |
Concatenate a StringBase.
StringBase & Fw::StringBase::operator= | ( | const char * | src | ) |
Assign char*.
Definition at line 100 of file StringType.cpp.
StringBase& Fw::StringBase::operator= | ( | const CHAR * | src | ) |
Assign CHAR*.
StringBase & Fw::StringBase::operator= | ( | const StringBase & | src | ) |
Assign another StringBase.
Definition at line 95 of file StringType.cpp.
StringBase& Fw::StringBase::operator= | ( | const StringBase & | src | ) |
Assign another StringBase.
bool Fw::StringBase::operator== | ( | const char * | other | ) | const |
Check for equality with char*.
Definition at line 48 of file StringType.cpp.
bool Fw::StringBase::operator== | ( | const CHAR * | other | ) | const |
Check for equality with CHAR*.
bool Fw::StringBase::operator== | ( | const StringBase & | other | ) | const |
Check for equality with StringBase.
Definition at line 39 of file StringType.cpp.
bool Fw::StringBase::operator== | ( | const StringBase & | other | ) | const |
Check for equality with StringBase.
|
virtual |
serialization function
Implements Fw::Serializable.
Reimplemented in Fw::LogStringArg, Fw::TlmString, and Fw::EightyCharString.
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 |
|
pure virtual |