F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
PrmString.hpp
Go to the documentation of this file.
1#ifndef FW_PRM_STRING_TYPE_HPP
2#define FW_PRM_STRING_TYPE_HPP
3
4#include <FpConfig.hpp>
6#include <Fw/Cfg/SerIds.hpp>
7
8namespace Fw {
9
10 class ParamString : public Fw::StringBase {
11 public:
12
13 enum {
15 SERIALIZED_SIZE = FW_PARAM_STRING_MAX_SIZE + sizeof(FwBuffSizeType) // size of buffer + storage of two size words
16 };
17
18 ParamString(const char* src);
19 ParamString(const StringBase& src);
20 ParamString(const ParamString& src);
22 ParamString& operator=(const ParamString& other);
23 ParamString& operator=(const StringBase& other);
24 ParamString& operator=(const char* other);
26
27 const char* toChar() const;
29
30 private:
31
32 char m_buf[FW_PARAM_STRING_MAX_SIZE];
33 };
34
35}
36
37#endif
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
#define FW_PARAM_STRING_MAX_SIZE
Max size of parameter string type.
Definition FpConfig.h:271
U16 FwBuffSizeType
Definition FpConfig.h:30
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
Declares ISF string base class.
NATIVE_UINT_TYPE getCapacity() const
return size of buffer
Definition PrmString.cpp:52
const char * toChar() const
Definition PrmString.cpp:48
ParamString & operator=(const ParamString &other)
Definition PrmString.cpp:22
Definition Buffer.cpp:21
@ FW_TYPEID_PRM_STR
Parameter string type id.
Definition SerIds.hpp:52