// ====================================================================== // \title C_SSerializableAc.hpp // \author Generated by fpp-to-cpp // \brief hpp file for C_S struct // ====================================================================== #ifndef C_C_SSerializableAc_HPP #define C_C_SSerializableAc_HPP #include "Fw/FPrimeBasicTypes.hpp" #include "Fw/Types/ExternalString.hpp" #include "Fw/Types/Serializable.hpp" #include "Fw/Types/String.hpp" class C_S : public Fw::Serializable { public: // ---------------------------------------------------------------------- // Constants // ---------------------------------------------------------------------- enum { //! The size of the serial representation SERIALIZED_SIZE = sizeof(U32) }; public: // ---------------------------------------------------------------------- // Constructors // ---------------------------------------------------------------------- //! Constructor (default value) C_S(); //! Member constructor C_S(U32 x); //! Copy constructor C_S( const C_S& obj //!< The source object ); public: // ---------------------------------------------------------------------- // Operators // ---------------------------------------------------------------------- //! Copy assignment operator C_S& operator=( const C_S& obj //!< The source object ); //! Equality operator bool operator==( const C_S& obj //!< The other object ) const; //! Inequality operator bool operator!=( const C_S& obj //!< The other object ) const; #ifdef BUILD_UT //! Ostream operator friend std::ostream& operator<<( std::ostream& os, //!< The ostream const C_S& obj //!< The object ); #endif public: // ---------------------------------------------------------------------- // Member functions // ---------------------------------------------------------------------- //! Serialization Fw::SerializeStatus serializeTo( Fw::SerializeBufferBase& buffer, //!< The serial buffer Fw::Serialization::Endianness mode = Fw::Serialization::BIG //!< Endianness of serialized buffer ) const; //! Deserialization Fw::SerializeStatus deserializeFrom( Fw::SerializeBufferBase& buffer, //!< The serial buffer Fw::Serialization::Endianness mode = Fw::Serialization::BIG //!< Endianness of serialized buffer ); //! Get the dynamic serialized size of the struct FwSizeType serializedSize() const; #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 U32 get_x() const { return this->m_x; } // ---------------------------------------------------------------------- // Setter functions // ---------------------------------------------------------------------- //! Set all members void set(U32 x); //! Set member x void set_x(U32 x); protected: // ---------------------------------------------------------------------- // Member variables // ---------------------------------------------------------------------- U32 m_x; }; #endif