F´ Flight Software - C/C++ Documentation  NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
TaskString.hpp
Go to the documentation of this file.
1 #ifndef OS_TASK_STRING_TYPE_HPP
2 #define OS_TASK_STRING_TYPE_HPP
3 
6 #include <FpConfig.hpp>
7 
8 namespace Os {
9 
10  class TaskString : public Fw::StringBase {
11  public:
12 
13  TaskString(const char* src);
14  TaskString(const StringBase& src);
15  TaskString(const TaskString& src);
16  TaskString();
17  TaskString& operator=(const TaskString& other);
18  TaskString& operator=(const StringBase& other);
19  TaskString& operator=(const char* other);
20  ~TaskString();
21 
22  const char* toChar() const;
24 
25  private:
26 
27  char m_buf[FW_TASK_NAME_MAX_SIZE];
28 
29  };
30 
31 }
32 
33 #endif
StringType.hpp
Declares ISF string base class.
Os
Definition: File.cpp:7
Fw::StringBase::StringBase
StringBase()
Definition: StringType.cpp:22
Fw::StringBase
Definition: StringType.hpp:23
Os::TaskString::TaskString
TaskString()
default constructor
Definition: TaskString.cpp:18
Os::TaskString::operator=
TaskString & operator=(const TaskString &other)
assignment operator
Definition: TaskString.cpp:22
Os::TaskString::~TaskString
~TaskString()
destructor
Definition: TaskString.cpp:45
Os::TaskString
Definition: TaskString.hpp:10
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:30
FpConfig.hpp
ISF configuration file.
Os::TaskString::toChar
const char * toChar() const
get pointer to internal char buffer
Definition: TaskString.cpp:48
FW_TASK_NAME_MAX_SIZE
#define FW_TASK_NAME_MAX_SIZE
Max size of task name.
Definition: FpConfig.hpp:216
Os::TaskString::getCapacity
NATIVE_UINT_TYPE getCapacity() const
return buffer size
Definition: TaskString.cpp:52
BasicTypes.hpp
Declares ISF basic types.