Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

RoomAccess Class Reference

Inheritance diagram for RoomAccess:

Inheritance graph
[legend]
Collaboration diagram for RoomAccess:

Collaboration graph
[legend]

Detailed Description

Interface to access changing room.

Definition at line 11 of file RoomAccess.h.

Public Member Functions

 RoomAccess ()
 Room is not set.
 ~RoomAccess ()
void takeRoom (Room *new_room)
void cleanRoom ()
 Remove old room.
bool isRoom () const
Roomroom ()
 Returns room or throws exception.
const Roomconst_room () const
 Returns room or throws exception.


Constructor & Destructor Documentation

RoomAccess::RoomAccess  ) 
 

Room is not set.

Definition at line 18 of file RoomAccess.cpp.

00019 {
00020     m_room = NULL;
00021 }

RoomAccess::~RoomAccess  ) 
 

Definition at line 23 of file RoomAccess.cpp.

00024 {
00025     cleanRoom();
00026 }


Member Function Documentation

void RoomAccess::cleanRoom  ) 
 

Remove old room.

Definition at line 39 of file RoomAccess.cpp.

00040 {
00041     if (m_room) {
00042         delete m_room;
00043         m_room = NULL;
00044     }
00045 }

const Room * RoomAccess::const_room  )  const
 

Returns room or throws exception.

Definition at line 73 of file RoomAccess.cpp.

00074 {
00075     checkRoom();
00076     return m_room;
00077 }

bool RoomAccess::isRoom  )  const [inline]
 

Definition at line 22 of file RoomAccess.h.

00022 { return !!m_room; }

Room * RoomAccess::room  ) 
 

Returns room or throws exception.

Definition at line 63 of file RoomAccess.cpp.

00064 {
00065     checkRoom();
00066     return m_room;
00067 }

void RoomAccess::takeRoom Room new_room  ) 
 

Definition at line 29 of file RoomAccess.cpp.

00030 {
00031     cleanRoom();
00032     m_room = new_room;
00033 }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:33 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2