F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
31 return strnlen(this->
m_buf,
sizeof(this->
m_buf));
41 if (buff != this->
m_buf) {
50 #if FW_AMPCS_COMPATIBLE
72 #if FW_AMPCS_COMPATIBLE
84 this->
m_buf[strSize-1] = 0;
105 this->
m_buf[size <
sizeof(this->
m_buf)?size:
sizeof(this->
m_buf)-1] = 0;
114 #if FW_SERIALIZABLE_TO_STRING
115 void TlmString::toString(
StringBase& text)
const {
Declares ISF string base class.
void terminate(NATIVE_UINT_TYPE size)
terminate the string
SerializeStatus
forward declaration for string
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
const char * toChar(void) const
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
char m_buf[FW_TLM_STRING_MAX_SIZE]
NATIVE_UINT_TYPE m_maxSer
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
#define FW_MIN(a, b)
MIN macro.
void setMaxSerialize(NATIVE_UINT_TYPE size)
PRIVATE NATIVE_UINT_TYPE size
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
virtual const char * toChar(void) const =0
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
virtual void copyBuff(const char *buff, NATIVE_UINT_TYPE size)=0
NATIVE_UINT_TYPE length(void) const
Get length of string.
NATIVE_UINT_TYPE getCapacity(void) const
return size of buffer
const TlmString & operator=(const TlmString &other)
equal operator for other strings
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
#define FW_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
Declares ISF basic types.