fpp/compiler/tools/fpp-to-cpp/test/struct/IncludingSerializableAc.ref.hpp
2025-03-28 16:41:34 -07:00

142 lines
3.4 KiB
C++
Vendored

// ======================================================================
// \title IncludingSerializableAc.hpp
// \author Generated by fpp-to-cpp
// \brief hpp file for Including struct
// ======================================================================
#ifndef IncludingSerializableAc_HPP
#define IncludingSerializableAc_HPP
#include "Fw/FPrimeBasicTypes.hpp"
#include "Fw/Types/ExternalString.hpp"
#include "Fw/Types/Serializable.hpp"
#include "Fw/Types/String.hpp"
#include "IncludedSerializableAc.hpp"
class Including :
public Fw::Serializable
{
public:
// ----------------------------------------------------------------------
// Constants
// ----------------------------------------------------------------------
enum {
//! The size of the serial representation
SERIALIZED_SIZE =
Included::SERIALIZED_SIZE
};
public:
// ----------------------------------------------------------------------
// Constructors
// ----------------------------------------------------------------------
//! Constructor (default value)
Including();
//! Member constructor
Including(const Included& x);
//! Copy constructor
Including(
const Including& obj //!< The source object
);
public:
// ----------------------------------------------------------------------
// Operators
// ----------------------------------------------------------------------
//! Copy assignment operator
Including& operator=(
const Including& obj //!< The source object
);
//! Equality operator
bool operator==(
const Including& obj //!< The other object
) const;
//! Inequality operator
bool operator!=(
const Including& obj //!< The other object
) const;
#ifdef BUILD_UT
//! Ostream operator
friend std::ostream& operator<<(
std::ostream& os, //!< The ostream
const Including& obj //!< The object
);
#endif
public:
// ----------------------------------------------------------------------
// Member functions
// ----------------------------------------------------------------------
//! Serialization
Fw::SerializeStatus serialize(
Fw::SerializeBufferBase& buffer //!< The serial buffer
) const;
//! Deserialization
Fw::SerializeStatus deserialize(
Fw::SerializeBufferBase& buffer //!< The serial buffer
);
#if FW_SERIALIZABLE_TO_STRING
//! Convert struct to string
void toString(
Fw::StringBase& sb //!< The StringBase object to hold the result
) const;
#endif
// ----------------------------------------------------------------------
// Getter functions
// ----------------------------------------------------------------------
//! Get member x
Included& getx()
{
return this->m_x;
}
//! Get member x (const)
const Included& getx() const
{
return this->m_x;
}
// ----------------------------------------------------------------------
// Setter functions
// ----------------------------------------------------------------------
//! Set all members
void set(const Included& x);
//! Set member x
void setx(const Included& x);
protected:
// ----------------------------------------------------------------------
// Member variables
// ----------------------------------------------------------------------
Included m_x;
};
#endif