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