F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InternalInterfaceString.cpp
Go to the documentation of this file.
3
4namespace Fw {
5
7 Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf));
8 }
9
11 Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf));
12 }
13
17
21
23 if(this == &other) {
24 return *this;
25 }
26
27 Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
28 return *this;
29 }
30
32 if(this == &other) {
33 return *this;
34 }
35
36 Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
37 return *this;
38 }
39
41 Fw::StringUtils::string_copy(this->m_buf, other, sizeof(this->m_buf));
42 return *this;
43 }
44
47
48 const char* InternalInterfaceString::toChar() const {
49 return this->m_buf;
50 }
51
55}
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
#define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
Max size of interface string parameter type.
Definition FpConfig.h:289
const char * toChar() const
gets char buffer
NATIVE_UINT_TYPE getCapacity() const
return buffer size
InternalInterfaceString()
default constructor
InternalInterfaceString & operator=(const InternalInterfaceString &other)
assignment operator
virtual const CHAR * toChar() const =0
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed