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
CmdString.hpp
Go to the documentation of this file.
1#ifndef FW_CMD_STRING_TYPE_HPP
2#define FW_CMD_STRING_TYPE_HPP
3
4#include <FpConfig.hpp>
6#include <Fw/Cfg/SerIds.hpp>
7
8namespace Fw {
9
11 public:
12
13 enum {
16 };
17
18 CmdStringArg(const char* src);
19 CmdStringArg(const StringBase& src);
20 CmdStringArg(const CmdStringArg& src);
22 CmdStringArg& operator=(const CmdStringArg& other);
23 CmdStringArg& operator=(const StringBase& other);
24 CmdStringArg& operator=(const char* other);
26
27 const char* toChar() const;
29
30 private:
31
32 char m_buf[FW_CMD_STRING_MAX_SIZE];
33 };
34
35}
36
37#endif
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition FpConfig.h:231
U16 FwBuffSizeType
Definition FpConfig.h:30
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
Declares ISF string base class.
CmdStringArg & operator=(const CmdStringArg &other)
Definition CmdString.cpp:22
NATIVE_UINT_TYPE getCapacity() const
return buffer size
Definition CmdString.cpp:52
const char * toChar() const
Definition CmdString.cpp:48
Definition Buffer.cpp:21
@ FW_TYPEID_CMD_STR
Command string type id.
Definition SerIds.hpp:46