F´ Flight Software - C/C++ Documentation  NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
CmdString.hpp
Go to the documentation of this file.
1 #ifndef FW_CMD_STRING_TYPE_HPP
2 #define FW_CMD_STRING_TYPE_HPP
3 
6 #include <FpConfig.hpp>
7 #include <Fw/Cfg/SerIds.hpp>
8 
9 namespace Fw {
10 
11  class CmdStringArg : public Fw::StringBase {
12  public:
13 
14  enum {
17  };
18 
19  CmdStringArg(const char* src);
20  CmdStringArg(const StringBase& src);
21  CmdStringArg(const CmdStringArg& src);
22  CmdStringArg();
23  CmdStringArg& operator=(const CmdStringArg& other);
24  CmdStringArg& operator=(const StringBase& other);
25  CmdStringArg& operator=(const char* other);
26  ~CmdStringArg();
27 
28  const char* toChar() const;
29  NATIVE_UINT_TYPE getCapacity() const ;
30 
31  private:
32 
33  char m_buf[FW_CMD_STRING_MAX_SIZE];
34  };
35 
36 }
37 
38 #endif
StringType.hpp
Declares ISF string base class.
Fw::CmdStringArg::SERIALIZED_TYPE_ID
@ SERIALIZED_TYPE_ID
Definition: CmdString.hpp:15
Fw::FW_TYPEID_CMD_STR
@ FW_TYPEID_CMD_STR
Command string type id.
Definition: SerIds.hpp:46
Fw::CmdStringArg::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition: CmdString.hpp:16
FW_CMD_STRING_MAX_SIZE
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition: FpConfig.hpp:232
Fw::StringBase
Definition: StringType.hpp:23
Fw::CmdStringArg
Definition: CmdString.hpp:11
Fw::CmdStringArg::~CmdStringArg
~CmdStringArg()
Definition: CmdString.cpp:45
Fw::CmdStringArg::operator=
CmdStringArg & operator=(const CmdStringArg &other)
Definition: CmdString.cpp:22
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:30
FpConfig.hpp
ISF configuration file.
Fw::CmdStringArg::CmdStringArg
CmdStringArg()
Definition: CmdString.cpp:18
Fw::CmdStringArg::getCapacity
NATIVE_UINT_TYPE getCapacity() const
return buffer size
Definition: CmdString.cpp:52
BasicTypes.hpp
Declares ISF basic types.
SerIds.hpp
Definitions for ISF type serial IDs.
FwBuffSizeType
#define FwBuffSizeType
Type representation for storing a buffer or string size.
Definition: FpConfig.hpp:79
Fw::CmdStringArg::toChar
const char * toChar() const
Definition: CmdString.cpp:48
Fw
Definition: Buffer.cpp:21