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

#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 , SERIALIZED_SIZE = FW_INTERNAL_INTERFACE_STRING_MAX_SIZE + sizeof(FwBuffSizeType) }
 

Public Member Functions

 InternalInterfaceString (const char *src)
 char* source constructor More...
 
 InternalInterfaceString (const StringBase &src)
 other string constructor More...
 
 InternalInterfaceString (const InternalInterfaceString &src)
 other string constructor More...
 
 InternalInterfaceString ()
 default constructor More...
 
InternalInterfaceStringoperator= (const InternalInterfaceString &other)
 assignment operator More...
 
InternalInterfaceStringoperator= (const StringBase &other)
 other string assignment operator More...
 
InternalInterfaceStringoperator= (const char *other)
 char* assignment operator More...
 
 ~InternalInterfaceString ()
 destructor More...
 
const char * toChar () const
 gets char buffer More...
 
NATIVE_UINT_TYPE getCapacity () const
 return buffer size More...
 
- Public Member Functions inherited from Fw::StringBase
NATIVE_UINT_TYPE length () const
 Get length of string. More...
 
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, NATIVE_UINT_TYPE maxLen) const
 serialization function More...
 
virtual SerializeStatus deserialize (SerializeBufferBase &buffer)
 deserialization function More...
 

Additional Inherited Members

- Protected Member Functions inherited from Fw::StringBase
 StringBase ()
 
virtual ~StringBase ()
 
void appendBuff (const CHAR *buff, NATIVE_UINT_TYPE size)
 
- Protected Member Functions inherited from Fw::Serializable
 Serializable ()
 Default constructor. More...
 
virtual ~Serializable ()
 destructor More...
 

Detailed Description

Definition at line 10 of file InternalInterfaceString.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERIALIZED_TYPE_ID 

typeid for string type

SERIALIZED_SIZE 

Serialized size is size of buffer + size field.

Definition at line 13 of file InternalInterfaceString.hpp.

Constructor & Destructor Documentation

◆ InternalInterfaceString() [1/4]

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

char* source constructor

Definition at line 6 of file InternalInterfaceString.cpp.

◆ InternalInterfaceString() [2/4]

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

other string constructor

Definition at line 10 of file InternalInterfaceString.cpp.

◆ InternalInterfaceString() [3/4]

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

other string constructor

Definition at line 14 of file InternalInterfaceString.cpp.

◆ InternalInterfaceString() [4/4]

Fw::InternalInterfaceString::InternalInterfaceString ( )

default constructor

Definition at line 18 of file InternalInterfaceString.cpp.

◆ ~InternalInterfaceString()

Fw::InternalInterfaceString::~InternalInterfaceString ( )

destructor

Definition at line 45 of file InternalInterfaceString.cpp.

Member Function Documentation

◆ getCapacity()

NATIVE_UINT_TYPE Fw::InternalInterfaceString::getCapacity ( ) const
virtual

return buffer size

Implements Fw::StringBase.

Definition at line 52 of file InternalInterfaceString.cpp.

◆ operator=() [1/3]

InternalInterfaceString & Fw::InternalInterfaceString::operator= ( const char *  other)

char* assignment operator

Definition at line 40 of file InternalInterfaceString.cpp.

◆ operator=() [2/3]

InternalInterfaceString & Fw::InternalInterfaceString::operator= ( const InternalInterfaceString other)

assignment operator

Definition at line 22 of file InternalInterfaceString.cpp.

◆ operator=() [3/3]

InternalInterfaceString & Fw::InternalInterfaceString::operator= ( const StringBase other)

other string assignment operator

Definition at line 31 of file InternalInterfaceString.cpp.

◆ toChar()

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

gets char buffer

Implements Fw::StringBase.

Definition at line 48 of file InternalInterfaceString.cpp.


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