F´ Flight Software - C/C++ Documentation  NASA-v2.1.0
A framework for building embedded system applications to NASA flight quality standards.
InternalInterfaceString.cpp
Go to the documentation of this file.
3 
4 namespace 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 
15  Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf));
16  }
17 
19  this->m_buf[0] = 0;
20  }
21 
23  Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
24  return *this;
25  }
26 
28  Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
29  return *this;
30  }
31 
33  Fw::StringUtils::string_copy(this->m_buf, other, sizeof(this->m_buf));
34  return *this;
35  }
36 
38  }
39 
40  const char* InternalInterfaceString::toChar(void) const {
41  return this->m_buf;
42  }
43 
46  }
47 }
Fw::InternalInterfaceString
Definition: InternalInterfaceString.hpp:11
Fw::StringBase
Definition: StringType.hpp:23
StringUtils.hpp
Fw::StringUtils::string_copy
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
Definition: StringUtils.cpp:5
Fw::StringBase::toChar
virtual const char * toChar(void) const =0
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:30
Fw::InternalInterfaceString::~InternalInterfaceString
~InternalInterfaceString(void)
destructor
Definition: InternalInterfaceString.cpp:37
Fw::InternalInterfaceString::getCapacity
NATIVE_UINT_TYPE getCapacity(void) const
return buffer size
Definition: InternalInterfaceString.cpp:44
Fw::InternalInterfaceString::operator=
InternalInterfaceString & operator=(const InternalInterfaceString &other)
assignment operator
Definition: InternalInterfaceString.cpp:22
Fw::InternalInterfaceString::toChar
const char * toChar(void) const
gets char buffer
Definition: InternalInterfaceString.cpp:40
FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
#define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
Max size of interface string parameter type.
Definition: FpConfig.hpp:285
InternalInterfaceString.hpp
Fw
Definition: Buffer.cpp:21
Fw::InternalInterfaceString::InternalInterfaceString
InternalInterfaceString(void)
default constructor
Definition: InternalInterfaceString.cpp:18