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. 1 #ifndef FW_INTERNAL_INTERFACE_STRING_TYPE_HPP
2 #define FW_INTERNAL_INTERFACE_STRING_TYPE_HPP
24 const char*
toChar(
void)
const;
41 #endif // FW_INTERNAL_INTERFACE_STRING_TYPE_HPP
Declares ISF string base class.
@ SERIALIZED_TYPE_ID
typeid for string type
#define PRIVATE
overridable private for unit testing
void terminate(NATIVE_UINT_TYPE size)
terminate the string
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialization function
SerializeStatus
forward declaration for string
PRIVATE NATIVE_UINT_TYPE size
copy source buffer, overwriting
NATIVE_UINT_TYPE length(void) const
returns length of stored string
char m_buf[FW_INTERNAL_INTERFACE_STRING_MAX_SIZE]
storage for string data
@ FW_TYPEID_INTERNAL_INTERFACE_STRING
interface string Buffer type id
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
~InternalInterfaceString(void)
destructor
virtual void copyBuff(const char *buff, NATIVE_UINT_TYPE size)=0
NATIVE_UINT_TYPE getCapacity(void) const
return buffer size
const InternalInterfaceString & operator=(const InternalInterfaceString &other)
equal operator
@ SERIALIZED_SIZE
Serialized size is size of buffer + size field.
const char * toChar(void) const
gets char buffer
Declares ISF basic types.
Definitions for ISF type serial IDs.
#define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
Max size of interface string parameter type.
#define FwBuffSizeType
Type representation for storing a buffer or string size.
InternalInterfaceString(void)
default constructor