diff options
Diffstat (limited to 'ACE/examples/APG/Streams/Message.h')
-rw-r--r-- | ACE/examples/APG/Streams/Message.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/ACE/examples/APG/Streams/Message.h b/ACE/examples/APG/Streams/Message.h deleted file mode 100644 index 29ddd30d5a1..00000000000 --- a/ACE/examples/APG/Streams/Message.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -#ifndef MESSAGE_H -#define MESSAGE_H - -class RecordingDevice; - -class Message -{ -public: - Message () : device_(0), type_(0), id_(0) - { } - - ~Message () - { } - - RecordingDevice *recorder (void) - { - return this->device_; - } - - void recorder (RecordingDevice *device) - { - this->device_ = device; - } - - void type (MessageType *type) - { - this->type_ = type; - } - - MessageType *type (void) - { - return this->type_; - } - - void caller_id (CallerId *id) - { - this->id_ = id; - } - - CallerId *caller_id (void) - { - return this->id_; - } - - void addr (ACE_FILE_Addr &addr) - { - this->addr_ = addr; - } - - void incoming_message (ACE_FILE_Addr &addr, MessageType *type) - { - this->addr_ = addr; - this->type_ = type; - } - - ACE_FILE_Addr &addr (void) - { - return this->addr_; - } - - int is_text (void) - { - return this->type_->is_text (); - } - - int is_audio (void) - { - return this->type_->is_audio (); - } - - int is_video (void) - { - return this->type_->is_video (); - } - -private: - RecordingDevice *device_; - MessageType *type_; - CallerId *id_; - ACE_FILE_Addr addr_; -}; - -class AudioMessage : public Message -{ }; - -class VideoMessage : public Message -{ }; - -#endif /* MESSAGE_H */ |