GlobalObjects
Loading...
Searching...
No Matches
glo::LockPossibleSpecification Struct Reference

Permitted actions in the database such as read, write and delete can be queried for an object. This is the answer. More...

#include <GloTypes.h>

Public Member Functions

 LockPossibleSpecification ()
 
 LockPossibleSpecification (const LockPossibleSpecification &rT)
 
 LockPossibleSpecification (unsigned long ulValue)
 
virtual ~LockPossibleSpecification ()
 
unsigned long getAsUL ()
 
LockPossibleSpecificationoperator= (const LockPossibleSpecification &rT)
 
void set (unsigned long ulValue)
 
bool operator== (const LockPossibleSpecification &rT) const
 Comparison operator.
 
bool operator!= (const LockPossibleSpecification &rT) const
 Comparison operator.
 

Public Attributes

bool m_bDelete
 
bool m_bRead
 
bool m_bWrite
 

Detailed Description

Permitted actions in the database such as read, write and delete can be queried for an object. This is the answer.

Constructor & Destructor Documentation

◆ LockPossibleSpecification() [1/3]

glo::LockPossibleSpecification::LockPossibleSpecification ( )
inline

Stanmdard constructor to initialize the members.

◆ LockPossibleSpecification() [2/3]

glo::LockPossibleSpecification::LockPossibleSpecification ( unsigned long ulValue)
inline

Constructor with parameter passing.
Sets the allowed actions as bit patterns.

Parameters
[in]ulValuevalues can be or concatenated e.g., for reading and writing (1 | 2).
  • Bit 0 = m_bRead => 1
  • Bit 1 = m_bWrite => 2
  • Bit 2 = m_bDelete => 4

◆ ~LockPossibleSpecification()

virtual glo::LockPossibleSpecification::~LockPossibleSpecification ( )
inlinevirtual

Destructor

◆ LockPossibleSpecification() [3/3]

glo::LockPossibleSpecification::LockPossibleSpecification ( const LockPossibleSpecification & rT)
inline

Copy constructor.

Parameters
[in]rTThe data is copied from this object.

Member Function Documentation

◆ getAsUL()

unsigned long glo::LockPossibleSpecification::getAsUL ( )
inline

Returns the allowed actions as bit patterns.

Returns
The return value can be interpreted as follows:
  • Bit 0 = m_bRead => 1
  • Bit 1 = m_bWrite => 2
  • Bit 2 = m_bDelete => 4

◆ operator!=()

bool glo::LockPossibleSpecification::operator!= ( const LockPossibleSpecification & rT) const
inline

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ operator=()

LockPossibleSpecification & glo::LockPossibleSpecification::operator= ( const LockPossibleSpecification & rT)
inline

Assignment operator.

Parameters
[in]rTThe data is transferred from this object.

◆ operator==()

bool glo::LockPossibleSpecification::operator== ( const LockPossibleSpecification & rT) const
inline

Comparison operator.

Parameters
[in]rTThe object to be compared with this one.

◆ set()

void glo::LockPossibleSpecification::set ( unsigned long ulValue)
inline

Sets the allowed actions as bit patterns.

Parameters
[in]ulValuevalues can be or concatenated e.g., for reading and writing (1 | 2).
  • Bit 0 = m_bRead => 1
  • Bit 1 = m_bWrite => 2
  • Bit 2 = m_bDelete => 4

Member Data Documentation

◆ m_bDelete

bool glo::LockPossibleSpecification::m_bDelete

If true, the requested object can be deleted in the database.

◆ m_bRead

bool glo::LockPossibleSpecification::m_bRead

If true, the requested object can be read from database.

◆ m_bWrite

bool glo::LockPossibleSpecification::m_bWrite

If true, the requested object can be stored in the database.


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