Jpp
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
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::setStatus
void setStatus(const bool status)
Set status of object.
Definition:
JObjectStatus.hh:38
JLANG::JObjectStatus::status
bool status
Definition:
JObjectStatus.hh:55
JLANG::JAbstractObjectStatus
Interface for status of object.
Definition:
JAbstractObjectStatus.hh:19
JLANG::JObjectStatus::getStatus
virtual bool getStatus() const
Get status of object.
Definition:
JObjectStatus.hh:27
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JLANG::JObjectStatus
Auxiliary class for status of object.
Definition:
JObjectStatus.hh:19
JAbstractObjectStatus.hh
JLANG::JObjectStatus::JObjectStatus
JObjectStatus()
Default constructor.
Definition:
JObjectStatus.hh:50
JLANG
Auxiliary classes and methods for language specific functionality.
Definition:
JAbstractClass.hh:10
Generated by
1.8.16