Jpp
pmt_effective_area_update
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JLang
JObjectStatus.hh
Go to the documentation of this file.
1
#ifndef __JLANG__JOBJECTSTATUS__
2
#define __JLANG__JOBJECTSTATUS__
3
4
#include "
JLang/JAbstractObjectStatus.hh
"
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
:
20
public
JAbstractObjectStatus
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
*/
50
JObjectStatus
() :
51
status
(false)
52
{}
53
54
55
bool
status
;
56
};
57
}
58
59
#endif
JLANG::JObjectStatus
Auxiliary class for status of object.
Definition:
JObjectStatus.hh:19
JLANG::JObjectStatus::setStatus
void setStatus(const bool status)
Set status of object.
Definition:
JObjectStatus.hh:38
JLANG::JObjectStatus::status
bool status
Definition:
JObjectStatus.hh:55
JLANG::JObjectStatus::JObjectStatus
JObjectStatus()
Default constructor.
Definition:
JObjectStatus.hh:50
JLANG::JAbstractObjectStatus
Interface for status of object.
Definition:
JAbstractObjectStatus.hh:19
JLANG::JObjectStatus::getStatus
virtual bool getStatus() const override
Get status of object.
Definition:
JObjectStatus.hh:27
JAbstractObjectStatus.hh
Generated by
1.8.5