F´ Flight Software - C/C++ Documentation  NASA-v2.1.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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(void);
23  CmdStringArg& operator=(const CmdStringArg& other);
24  CmdStringArg& operator=(const StringBase& other);
25  CmdStringArg& operator=(const char* other);
26  ~CmdStringArg(void);
27 
28  const char* toChar(void) const;
29  NATIVE_UINT_TYPE getCapacity(void) 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::toChar
const char * toChar(void) const
Definition: CmdString.cpp:40
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:235
Fw::StringBase
Definition: StringType.hpp:23
Fw::CmdStringArg
Definition: CmdString.hpp:11
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
Fw::CmdStringArg::CmdStringArg
CmdStringArg(void)
Definition: CmdString.cpp:18
FpConfig.hpp
ISF configuration file.
BasicTypes.hpp
Declares ISF basic types.
Fw::CmdStringArg::~CmdStringArg
~CmdStringArg(void)
Definition: CmdString.cpp:37
SerIds.hpp
Definitions for ISF type serial IDs.
FwBuffSizeType
#define FwBuffSizeType
Type representation for storing a buffer or string size.
Definition: FpConfig.hpp:83
Fw::CmdStringArg::getCapacity
NATIVE_UINT_TYPE getCapacity(void) const
return buffer size
Definition: CmdString.cpp:44
Fw
Definition: Buffer.cpp:21