#include <oi_msg.hh>
Collaboration diagram for OI_REPLY_QUEUE:

Public Methods | |
| OI_REPLY_QUEUE () | |
| ~OI_REPLY_QUEUE () | |
| void | add_message (RCS_OI_REPLY_MSG *_msg) |
| RCS_OI_REPLY_MSG * | get_message () |
| void | flush () |
Private Attributes | |
| OI_REPLY_QUEUE_NODE * | head |
| OI_REPLY_QUEUE_NODE * | tail |
|
|
|
|
|
Definition at line 140 of file oi_msg.cc. 00141 {
00142 flush ();
00143 }
|
|
|
Definition at line 147 of file oi_msg.cc. 00148 {
00149 OI_REPLY_QUEUE_NODE *new_reply_node;
00150
00151 new_reply_node = new OI_REPLY_QUEUE_NODE (_msg);
00152
00153 if (NULL == head)
00154 {
00155 head = new_reply_node;
00156 }
00157 if (NULL != tail)
00158 {
00159 tail->next = new_reply_node;
00160 tail = new_reply_node;
00161 }
00162 else
00163 {
00164 tail = new_reply_node;
00165 }
00166 }
|
|
|
Definition at line 171 of file oi_msg.cc. 00172 {
00173 RCS_OI_REPLY_MSG *return_msg;
00174 OI_REPLY_QUEUE_NODE *first_reply_node;
00175
00176 if (NULL != head)
00177 {
00178 return_msg = head->msg;
00179 first_reply_node = head;
00180 head = head->next;
00181 delete first_reply_node;
00182 return return_msg;
00183 }
00184 return NULL;
00185 }
|
|
|
Definition at line 189 of file oi_msg.cc. Referenced by ~OI_REPLY_QUEUE().
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001