Jpp
software
JLang
JAbstractObjectStatus.hh
Go to the documentation of this file.
1
#ifndef __JLANG__JABSTRACTOBJECTSTATUS__
2
#define __JLANG__JABSTRACTOBJECTSTATUS__
3
4
/**
5
* \author mdejong
6
*/
7
8
namespace
JLANG
{}
9
namespace
JPP
{
using namespace
JLANG
; }
10
11
namespace
JLANG
{
12
13
/**
14
* Interface for status of object.\n
15
* This interface implements:
16
* - type conversion operator <tt>bool ()</tt>; and
17
* - negate operator <tt>!</tt>.
18
*/
19
struct
JAbstractObjectStatus
{
20
/**
21
* Get status of object.
22
*
23
* \return status of this object
24
*/
25
virtual
bool
getStatus
()
const
= 0;
26
27
28
/**
29
* Type conversion operator.
30
*
31
* \return status of this object
32
*/
33
operator
bool()
const
34
{
35
return
this->
getStatus
();
36
}
37
38
39
/**
40
* Negated status of this object.
41
*
42
* \return negated status of this object
43
*/
44
bool
operator!
()
const
45
{
46
return
!(this->
getStatus
());
47
}
48
};
49
}
50
51
#endif
JLANG::JAbstractObjectStatus
Interface for status of object.
Definition:
JAbstractObjectStatus.hh:19
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JLANG
Auxiliary classes and methods for language specific functionality.
Definition:
JAbstractClass.hh:10
JLANG::JAbstractObjectStatus::getStatus
virtual bool getStatus() const =0
Get status of object.
JLANG::JAbstractObjectStatus::operator!
bool operator!() const
Negated status of this object.
Definition:
JAbstractObjectStatus.hh:44
Generated by
1.8.16