mirror of
https://github.com/nasa/fprime.git
synced 2025-12-10 00:44:37 -06:00
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp * lestarch: removing VxWorks StandardTypes from repository * updated fprime types for correct compilation with vxworks and baremetal * lestarch: refactoring types and configuration header w.r.t type design * lestarch: replacing usages of AssertArg with FwAssertArgType * lestarch: missspelled configuration * lestarch: minor compilation fixes * lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp * lestarch: updating PRI tokens * lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp * lestarch: UT and compilation fixes for types refactor * lestarch: sp * lestarch: fixing RPI issues in PassiveConsoleTextLogger * lestarch: converting RPI build to debug * lestarch: removing duplicate config imports * lestarch: fixing documentation * lestarch: fixing up multiple definitions and RPI compilation problems * lestarch: reverting debug build * lestarch: reverting platform types to class-based constants * lestarch: reworking basic types * lestarch: configured types refactor into classes * lestarch: fixing bugs with static constants in classes * lestarch: fixing platform types spelling and documentation * lestarch: adding include guards to types headers Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
38 lines
1004 B
C++
38 lines
1004 B
C++
#ifndef FW_PRM_STRING_TYPE_HPP
|
|
#define FW_PRM_STRING_TYPE_HPP
|
|
|
|
#include <FpConfig.hpp>
|
|
#include <Fw/Types/StringType.hpp>
|
|
#include <Fw/Cfg/SerIds.hpp>
|
|
|
|
namespace Fw {
|
|
|
|
class ParamString : public Fw::StringBase {
|
|
public:
|
|
|
|
enum {
|
|
SERIALIZED_TYPE_ID = FW_TYPEID_PRM_STR,
|
|
SERIALIZED_SIZE = FW_PARAM_STRING_MAX_SIZE + sizeof(FwBuffSizeType) // size of buffer + storage of two size words
|
|
};
|
|
|
|
ParamString(const char* src);
|
|
ParamString(const StringBase& src);
|
|
ParamString(const ParamString& src);
|
|
ParamString();
|
|
ParamString& operator=(const ParamString& other);
|
|
ParamString& operator=(const StringBase& other);
|
|
ParamString& operator=(const char* other);
|
|
~ParamString();
|
|
|
|
const char* toChar() const;
|
|
NATIVE_UINT_TYPE getCapacity() const;
|
|
|
|
private:
|
|
|
|
char m_buf[FW_PARAM_STRING_MAX_SIZE];
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|