 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 this->copyBuff(src,
sizeof(this->m_buf));
18 this->copyBuff(src.
toChar(),
sizeof(this->m_buf));
23 this->copyBuff(src.m_buf,
sizeof(this->m_buf));
45 if (buff != this->m_buf) {
46 (void)strncpy(this->m_buf,buff,size);
48 this->terminate(
sizeof(this->m_buf));
55 #if FW_AMPCS_COMPATIBLE
72 return buffer.
serialize((
U8*)this->m_buf,strSize,
true);
80 #if FW_AMPCS_COMPATIBLE
93 this->m_buf[deserSize_native] = 0;
100 this->terminate(maxSize);
116 this->m_buf[size <
sizeof(this->m_buf)?size:
sizeof(this->m_buf)-1] = 0;
120 this->copyBuff(other.m_buf,this->getCapacity());
124 #if FW_SERIALIZABLE_TO_STRING
125 void LogStringArg::toString(
StringBase& text)
const {
Declares ISF string base class.
SerializeStatus
forward declaration for string
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
const char * toChar(void) const
const LogStringArg & operator=(const LogStringArg &other)
equal operator for other strings
#define FW_MIN(a, b)
MIN macro.
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
virtual const char * toChar(void) const =0
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
void setMaxSerialize(NATIVE_UINT_TYPE size)
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
NATIVE_UINT_TYPE length(void) const
Get length of string.
Declares ISF basic types.