![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Types/String.hpp>
Public Types | |
| enum | { SERIALIZED_TYPE_ID = FW_TYPEID_FIXED_LENGTH_STRING , STRING_SIZE = FW_FIXED_LENGTH_STRING_SIZE , SERIALIZED_SIZE = STRING_SIZE + sizeof(FwBuffSizeType) } |
Public Member Functions | |
| String (const char *src) | |
| char* source constructor More... | |
| String (const StringBase &src) | |
| other string constructor More... | |
| String (const String &src) | |
| String string constructor. More... | |
| String () | |
| default constructor More... | |
| String & | operator= (const String &other) |
| assignment operator More... | |
| String & | operator= (const StringBase &other) |
| other string assignment operator More... | |
| String & | operator= (const char *other) |
| char* assignment operator More... | |
| ~String () | |
| destructor More... | |
| const char * | toChar () const |
| gets char buffer More... | |
| NATIVE_UINT_TYPE | getCapacity () const |
| return buffer size More... | |
Public Member Functions inherited from Fw::StringBase | |
| 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::StringBase | |
| StringBase () | |
| virtual | ~StringBase () |
| void | appendBuff (const CHAR *buff, NATIVE_UINT_TYPE size) |
Protected Member Functions inherited from Fw::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| virtual | ~Serializable () |
| destructor More... | |
Definition at line 10 of file String.hpp.
| anonymous enum |
| Enumerator | |
|---|---|
| SERIALIZED_TYPE_ID | typeid for string type |
| STRING_SIZE | Storage for string. |
| SERIALIZED_SIZE | Serialized size is size of buffer + size field. |
Definition at line 13 of file String.hpp.
| Fw::String::String | ( | const char * | src | ) |
char* source constructor
Definition at line 6 of file String.cpp.
| Fw::String::String | ( | const StringBase & | src | ) |
other string constructor
Definition at line 10 of file String.cpp.
| Fw::String::String | ( | const String & | src | ) |
String string constructor.
Definition at line 14 of file String.cpp.
| Fw::String::String | ( | ) |
default constructor
Definition at line 18 of file String.cpp.
| Fw::String::~String | ( | ) |
destructor
Definition at line 45 of file String.cpp.
|
virtual |
| String & Fw::String::operator= | ( | const char * | other | ) |
char* assignment operator
Definition at line 40 of file String.cpp.
assignment operator
Definition at line 22 of file String.cpp.
| String & Fw::String::operator= | ( | const StringBase & | other | ) |
other string assignment operator
Definition at line 31 of file String.cpp.
|
virtual |