13 #ifndef FW_STRING_BASE_HPP 
   14 #define FW_STRING_BASE_HPP 
   66     void vformat(
const CHAR* formatString, va_list args);  
 
   74     friend std::ostream& operator<<(std::ostream& os, 
const StringBase& str);
 
   76 #if FW_SERIALIZABLE_TO_STRING || BUILD_UT 
PlatformUIntType NATIVE_UINT_TYPE
 
PlatformSizeType FwSizeType
 
C++-compatible configuration header for fprime configuration.
 
NATIVE_UINT_TYPE SizeType
 
virtual const CHAR * toChar() const =0
 
bool operator!=(const StringBase &other) const
Inequality with StringBase.
 
NATIVE_UINT_TYPE SizeType
 
static constexpr SizeType STATIC_SERIALIZED_SIZE(SizeType maxLength)
 
SizeType serializedTruncatedSize(FwSizeType maxLength) const
 
virtual SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialization function
 
void format(const CHAR *formatString,...)
write formatted string to buffer
 
SizeType length() const
Get length of string.
 
bool operator==(const StringBase &other) const
Check for equality with StringBase.
 
SizeType maxLength() const
Get the maximum length of a string that the buffer can hold (which is capacity - 1)
 
void appendBuff(const CHAR *buff, SizeType size)
 
virtual SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
 
virtual SizeType getCapacity() const =0
return size of buffer
 
const CHAR * operator+=(const CHAR *src)
Concatenate a CHAR*.
 
StringBase & operator=(const CHAR *src)
Assign CHAR*.
 
SizeType serializedSize() const
 
void vformat(const CHAR *formatString, va_list args)
write formatted string to buffer using va_list
 
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
 
SerializeStatus
forward declaration for string