F´ Flight Software - C/C++ Documentation  devel
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 
4 #include <FpConfig.hpp>
6 
7 namespace Os {
8 
9  class TaskString : public Fw::StringBase {
10  public:
11 
12  TaskString(const char* src);
13  TaskString(const StringBase& src);
14  TaskString(const TaskString& src);
15  TaskString();
16  TaskString& operator=(const TaskString& other);
17  TaskString& operator=(const StringBase& other);
18  TaskString& operator=(const char* other);
19  ~TaskString();
20 
21  const char* toChar() const;
23 
24  private:
25 
26  char m_buf[FW_TASK_NAME_MAX_SIZE];
27 
28  };
29 
30 }
31 
32 #endif
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:52
#define FW_TASK_NAME_MAX_SIZE
Max size of task name.
Definition: FpConfig.h:223
C++-compatible configuration header for fprime configuration.
Declares ISF string base class.
const char * toChar() const
get pointer to internal char buffer
Definition: TaskString.cpp:48
TaskString()
default constructor
Definition: TaskString.cpp:18
TaskString & operator=(const TaskString &other)
assignment operator
Definition: TaskString.cpp:22
~TaskString()
destructor
Definition: TaskString.cpp:45
NATIVE_UINT_TYPE getCapacity() const
return buffer size
Definition: TaskString.cpp:52
Definition: File.cpp:6