// ====================================================================== // \title NamespaceSerializableAc.hpp // \author Generated by fpp-to-cpp // \brief hpp file for Namespace struct // ====================================================================== #ifndef NamespaceSerializableAc_HPP #define NamespaceSerializableAc_HPP #include "FpConfig.hpp" #include "Fw/Types/ExternalString.hpp" #include "Fw/Types/Serializable.hpp" #include "Fw/Types/String.hpp" #include "NamespacedAliasType2AliasAc.hpp" #include "NamespacedAliasTypeAliasAc.hpp" #include "SimpleCType2AliasAc.hpp" #include "SimpleCTypeAliasAc.hpp" class Namespace : public Fw::Serializable { public: // ---------------------------------------------------------------------- // Constants // ---------------------------------------------------------------------- enum { //! The size of the serial representation SERIALIZED_SIZE = sizeof(SimpleCType) + sizeof(SimpleCType2) + sizeof(M::M2::NamespacedAliasType) + sizeof(M::NamespacedAliasType2) }; public: // ---------------------------------------------------------------------- // Constructors // ---------------------------------------------------------------------- //! Constructor (default value) Namespace(); //! Member constructor Namespace( SimpleCType A, SimpleCType2 B, M::M2::NamespacedAliasType C, M::NamespacedAliasType2 D ); //! Copy constructor Namespace( const Namespace& obj //!< The source object ); public: // ---------------------------------------------------------------------- // Operators // ---------------------------------------------------------------------- //! Copy assignment operator Namespace& operator=( const Namespace& obj //!< The source object ); //! Equality operator bool operator==( const Namespace& obj //!< The other object ) const; //! Inequality operator bool operator!=( const Namespace& obj //!< The other object ) const; #ifdef BUILD_UT //! Ostream operator friend std::ostream& operator<<( std::ostream& os, //!< The ostream const Namespace& 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 A SimpleCType getA() const { return this->m_A; } //! Get member B SimpleCType2 getB() const { return this->m_B; } //! Get member C M::M2::NamespacedAliasType getC() const { return this->m_C; } //! Get member D M::NamespacedAliasType2 getD() const { return this->m_D; } // ---------------------------------------------------------------------- // Setter functions // ---------------------------------------------------------------------- //! Set all members void set( SimpleCType A, SimpleCType2 B, M::M2::NamespacedAliasType C, M::NamespacedAliasType2 D ); //! Set member A void setA(SimpleCType A); //! Set member B void setB(SimpleCType2 B); //! Set member C void setC(M::M2::NamespacedAliasType C); //! Set member D void setD(M::NamespacedAliasType2 D); protected: // ---------------------------------------------------------------------- // Member variables // ---------------------------------------------------------------------- SimpleCType m_A; SimpleCType2 m_B; M::M2::NamespacedAliasType m_C; M::NamespacedAliasType2 m_D; }; #endif