Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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
10namespace JLANG {}
11namespace JPP { using namespace JLANG; }
12
13namespace JLANG {
14
15 /**
16 * Auxiliary class for status of object.
17 * This class implements the JLANG::JAbstractObjectStatus interface.
18 */
21 {
22 /**
23 * Get status of object.
24 *
25 * \return status of this object
26 */
27 virtual bool getStatus() const override
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 classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Interface for status of object.
Auxiliary class for status of object.
void setStatus(const bool status)
Set status of object.
virtual bool getStatus() const override
Get status of object.
JObjectStatus()
Default constructor.