Jpp  15.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
JLANG::JObjectStatus Struct Reference

Auxiliary class for status of object. More...

#include <JObjectStatus.hh>

Inheritance diagram for JLANG::JObjectStatus:
JLANG::JAbstractObjectStatus

Public Member Functions

virtual bool getStatus () const override
 Get status of object. More...
 
void setStatus (const bool status)
 Set status of object. More...
 
 operator bool () const
 Type conversion operator. More...
 
bool operator! () const
 Negated status of this object. More...
 

Protected Member Functions

 JObjectStatus ()
 Default constructor. More...
 

Protected Attributes

bool status
 

Detailed Description

Auxiliary class for status of object.

This class implements the JLANG::JAbstractObjectStatus interface.

Definition at line 19 of file JObjectStatus.hh.

Constructor & Destructor Documentation

JLANG::JObjectStatus::JObjectStatus ( )
inlineprotected

Default constructor.

The default status of this object is false.

Definition at line 50 of file JObjectStatus.hh.

50  :
51  status(false)
52  {}

Member Function Documentation

virtual bool JLANG::JObjectStatus::getStatus ( ) const
inlineoverridevirtual

Get status of object.

Returns
status of this object

Implements JLANG::JAbstractObjectStatus.

Definition at line 27 of file JObjectStatus.hh.

28  {
29  return this->status;
30  }
void JLANG::JObjectStatus::setStatus ( const bool  status)
inline

Set status of object.

Parameters
statusstatus of this object

Definition at line 38 of file JObjectStatus.hh.

39  {
40  this->status = status;
41  }
JLANG::JAbstractObjectStatus::operator bool ( ) const
inlineinherited

Type conversion operator.

Returns
status of this object

Definition at line 33 of file JAbstractObjectStatus.hh.

34  {
35  return this->getStatus();
36  }
virtual bool getStatus() const =0
Get status of object.
bool JLANG::JAbstractObjectStatus::operator! ( ) const
inlineinherited

Negated status of this object.

Returns
negated status of this object

Definition at line 44 of file JAbstractObjectStatus.hh.

45  {
46  return !(this->getStatus());
47  }
virtual bool getStatus() const =0
Get status of object.

Member Data Documentation

bool JLANG::JObjectStatus::status
protected

Definition at line 55 of file JObjectStatus.hh.


The documentation for this struct was generated from the following file: