#ifndef __JLANG__JOBJECTSTATUS__ #define __JLANG__JOBJECTSTATUS__ #include "JLang/JAbstractObjectStatus.hh" /** * \author mdejong */ namespace JLANG {} namespace JPP { using namespace JLANG; } namespace JLANG { /** * Auxiliary class for status of object. * This class implements the JLANG::JAbstractObjectStatus interface. */ struct JObjectStatus : public JAbstractObjectStatus { /** * Get status of object. * * \return status of this object */ virtual bool getStatus() const override { return this->status; } /** * Set status of object. * * \param status status of this object */ void setStatus(const bool status) { this->status = status; } protected: /** * Default constructor. * * The default status of this object is false. */ JObjectStatus() : status(false) {} bool status; }; } #endif