

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 |
| Room * | room () |
| Returns room or throws exception. | |
| const Room * | const_room () const |
| Returns room or throws exception. | |
|
|
Room is not set.
Definition at line 18 of file RoomAccess.cpp. 00019 {
00020 m_room = NULL;
00021 }
|
|
|
Definition at line 23 of file RoomAccess.cpp. 00024 {
00025 cleanRoom();
00026 }
|
|
|
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 }
|
|
|
Returns room or throws exception.
Definition at line 73 of file RoomAccess.cpp. 00074 {
00075 checkRoom();
00076 return m_room;
00077 }
|
|
|
Definition at line 22 of file RoomAccess.h. 00022 { return !!m_room; }
|
|
|
Returns room or throws exception.
Definition at line 63 of file RoomAccess.cpp. 00064 {
00065 checkRoom();
00066 return m_room;
00067 }
|
|
|
Definition at line 29 of file RoomAccess.cpp. 00030 {
00031 cleanRoom();
00032 m_room = new_room;
00033 }
|
1.4.2