F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Fw::InternalInterfaceString Class Referencefinal

#include <Fw/Types/InternalInterfaceString.hpp>

Inheritance diagram for Fw::InternalInterfaceString:
Fw::StringBase Fw::Serializable

Public Types

enum  { SERIALIZED_TYPE_ID = FW_TYPEID_INTERNAL_INTERFACE_STRING , STRING_SIZE = FW_INTERNAL_INTERFACE_STRING_MAX_SIZE , SERIALIZED_SIZE = STATIC_SERIALIZED_SIZE(STRING_SIZE) }
 
- Public Types inherited from Fw::StringBase
using SizeType = NATIVE_UINT_TYPE
 
- Public Types inherited from Fw::Serializable
using SizeType = NATIVE_UINT_TYPE
 

Public Member Functions

 InternalInterfaceString ()
 
 InternalInterfaceString (const InternalInterfaceString &src)
 
 InternalInterfaceString (const StringBase &src)
 
 InternalInterfaceString (const char *src)
 
 ~InternalInterfaceString ()
 
InternalInterfaceStringoperator= (const InternalInterfaceString &src)
 
InternalInterfaceStringoperator= (const StringBase &src)
 
InternalInterfaceStringoperator= (const char *src)
 
const char * toChar () const
 
StringBase::SizeType getCapacity () const
 return size of buffer More...
 
- Public Member Functions inherited from Fw::StringBase
SizeType length () const
 Get length of string. More...
 
SizeType maxLength () const
 Get the maximum length of a string that the buffer can hold. More...
 
SizeType serializedSize () const
 
SizeType serializedTruncatedSize (FwSizeType maxLength) const
 
const CHARoperator+= (const CHAR *src)
 Concatenate a CHAR*. More...
 
const StringBaseoperator+= (const StringBase &src)
 Concatenate a StringBase. More...
 
bool operator== (const StringBase &other) const
 Check for equality with StringBase. More...
 
bool operator== (const CHAR *other) const
 Check for equality with CHAR*. More...
 
bool operator!= (const StringBase &other) const
 Inequality with StringBase. More...
 
bool operator!= (const CHAR *other) const
 Inequality with CHAR*. More...
 
StringBaseoperator= (const CHAR *src)
 Assign CHAR*. More...
 
StringBaseoperator= (const StringBase &src)
 Assign another StringBase. More...
 
void format (const CHAR *formatString,...)
 write formatted string to buffer More...
 
virtual SerializeStatus serialize (SerializeBufferBase &buffer) const
 serialization function More...
 
virtual SerializeStatus serialize (SerializeBufferBase &buffer, SizeType maxLen) const
 serialization function More...
 
virtual SerializeStatus deserialize (SerializeBufferBase &buffer)
 deserialization function More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Fw::StringBase
static constexpr SizeType STATIC_SERIALIZED_SIZE (SizeType maxLength)
 
static constexpr SizeType BUFFER_SIZE (SizeType maxLength)
 Get the size of a null-terminated string buffer. More...
 
- Protected Member Functions inherited from Fw::StringBase
 StringBase ()
 
virtual ~StringBase ()
 
void appendBuff (const CHAR *buff, SizeType size)
 
- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 destructor More...
 

Detailed Description

Definition at line 18 of file InternalInterfaceString.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_TYPE_ID 
STRING_SIZE 
SERIALIZED_SIZE 

Definition at line 20 of file InternalInterfaceString.hpp.

Constructor & Destructor Documentation

◆ InternalInterfaceString() [1/4]

Fw::InternalInterfaceString::InternalInterfaceString ( )
inline

Definition at line 26 of file InternalInterfaceString.hpp.

◆ InternalInterfaceString() [2/4]

Fw::InternalInterfaceString::InternalInterfaceString ( const InternalInterfaceString src)
inlineexplicit

Definition at line 28 of file InternalInterfaceString.hpp.

◆ InternalInterfaceString() [3/4]

Fw::InternalInterfaceString::InternalInterfaceString ( const StringBase src)
inlineexplicit

Definition at line 30 of file InternalInterfaceString.hpp.

◆ InternalInterfaceString() [4/4]

Fw::InternalInterfaceString::InternalInterfaceString ( const char *  src)
inlineexplicit

Definition at line 32 of file InternalInterfaceString.hpp.

◆ ~InternalInterfaceString()

Fw::InternalInterfaceString::~InternalInterfaceString ( )
inline

Definition at line 34 of file InternalInterfaceString.hpp.

Member Function Documentation

◆ getCapacity()

StringBase::SizeType Fw::InternalInterfaceString::getCapacity ( ) const
inlinevirtual

return size of buffer

Implements Fw::StringBase.

Definition at line 53 of file InternalInterfaceString.hpp.

◆ operator=() [1/3]

InternalInterfaceString& Fw::InternalInterfaceString::operator= ( const char *  src)
inline

Definition at line 46 of file InternalInterfaceString.hpp.

◆ operator=() [2/3]

InternalInterfaceString& Fw::InternalInterfaceString::operator= ( const InternalInterfaceString src)
inline

Definition at line 36 of file InternalInterfaceString.hpp.

◆ operator=() [3/3]

InternalInterfaceString& Fw::InternalInterfaceString::operator= ( const StringBase src)
inline

Definition at line 41 of file InternalInterfaceString.hpp.

◆ toChar()

const char* Fw::InternalInterfaceString::toChar ( ) const
inlinevirtual

Implements Fw::StringBase.

Definition at line 51 of file InternalInterfaceString.hpp.


The documentation for this class was generated from the following file: