Skyscraper 2.0
SBS::Lock Class Reference

#include <lock.h>

Inheritance diagram for SBS::Lock:
Collaboration diagram for SBS::Lock:

Public Member Functions

 Lock (Object *parent)
 
virtual ~Lock ()
 
void SetLocked (bool value, int keyid)
 
bool IsLocked ()
 
bool ToggleLock (bool force=false)
 
int GetKeyID ()
 

Private Attributes

bool Locked
 
int KeyID
 
ObjectParent
 

Detailed Description

Definition at line 29 of file lock.h.

Constructor & Destructor Documentation

◆ Lock()

SBS::Lock::Lock ( Object * parent)

Definition at line 30 of file lock.cpp.

References KeyID, Locked, and Parent.

◆ ~Lock()

virtual SBS::Lock::~Lock ( )
inlinevirtual

Definition at line 33 of file lock.h.

Member Function Documentation

◆ GetKeyID()

int SBS::Lock::GetKeyID ( )

Definition at line 71 of file lock.cpp.

References KeyID.

◆ IsLocked()

◆ SetLocked()

◆ ToggleLock()

bool SBS::Lock::ToggleLock ( bool force = false)

Member Data Documentation

◆ KeyID

int SBS::Lock::KeyID
private

Definition at line 41 of file lock.h.

Referenced by GetKeyID(), Lock(), SetLocked(), and ToggleLock().

◆ Locked

bool SBS::Lock::Locked
private

Definition at line 40 of file lock.h.

Referenced by IsLocked(), Lock(), SetLocked(), and ToggleLock().

◆ Parent

Object* SBS::Lock::Parent
private

Definition at line 42 of file lock.h.

Referenced by Lock(), and ToggleLock().


The documentation for this class was generated from the following files: