Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JObjectStatus.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JOBJECTSTATUS__
2 #define __JLANG__JOBJECTSTATUS__
3 
5 
6 /**
7  * \author mdejong
8  */
9 
10 namespace JLANG {}
11 namespace JPP { using namespace JLANG; }
12 
13 namespace JLANG {
14 
15  /**
16  * Auxiliary class for status of object.
17  * This class implements the JLANG::JAbstractObjectStatus interface.
18  */
19  struct JObjectStatus :
21  {
22  /**
23  * Get status of object.
24  *
25  * \return status of this object
26  */
27  virtual bool getStatus() const
28  {
29  return this->status;
30  }
31 
32 
33  /**
34  * Set status of object.
35  *
36  * \param status status of this object
37  */
38  void setStatus(const bool status)
39  {
40  this->status = status;
41  }
42 
43 
44  protected:
45  /**
46  * Default constructor.
47  *
48  * The default status of this object is false.
49  */
51  status(false)
52  {}
53 
54 
55  bool status;
56  };
57 }
58 
59 #endif
Auxiliary class for status of object.
void setStatus(const bool status)
Set status of object.
JObjectStatus()
Default constructor.
Interface for status of object.
virtual bool getStatus() const
Get status of object.