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>
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/*
|
|
*
|
|
*
|
|
* Created on: March 1, 2014
|
|
* Author: T. Canham
|
|
*/
|
|
|
|
/*
|
|
* Description:
|
|
* This object contains the CmdARgBuffer type, used for holding the serialized arguments of commands
|
|
*/
|
|
#ifndef FW_CMD_ARG_BUFFER_HPP
|
|
#define FW_CMD_ARG_BUFFER_HPP
|
|
|
|
#include <FpConfig.hpp>
|
|
#include <Fw/Types/Serializable.hpp>
|
|
#include <Fw/Cfg/SerIds.hpp>
|
|
|
|
namespace Fw {
|
|
|
|
class CmdArgBuffer : public SerializeBufferBase {
|
|
public:
|
|
|
|
enum {
|
|
SERIALIZED_TYPE_ID = FW_TYPEID_CMD_BUFF, //!< type id for CmdArgBuffer
|
|
SERIALIZED_SIZE = FW_CMD_ARG_BUFFER_MAX_SIZE + sizeof(I32) //!< size when serialized. Buffer + size of buffer
|
|
};
|
|
|
|
CmdArgBuffer(const U8 *args, NATIVE_UINT_TYPE size); //!< buffer source constructor
|
|
CmdArgBuffer(); //!< default constructor
|
|
CmdArgBuffer(const CmdArgBuffer& other); //!< other arg buffer constructor
|
|
virtual ~CmdArgBuffer(); //!< destructor
|
|
CmdArgBuffer& operator=(const CmdArgBuffer& other); //!< Equal operator
|
|
|
|
NATIVE_UINT_TYPE getBuffCapacity() const; //!< return capacity of buffer (how much it can hold)
|
|
U8* getBuffAddr(); //!< return address of buffer (non const version)
|
|
const U8* getBuffAddr() const; //!< return address of buffer (const version)
|
|
|
|
private:
|
|
U8 m_bufferData[FW_CMD_ARG_BUFFER_MAX_SIZE]; //!< command argument buffer
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|