diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/APG/Streams/Command.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/examples/APG/Streams/Command.h')
-rw-r--r-- | ACE/examples/APG/Streams/Command.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/examples/APG/Streams/Command.h b/ACE/examples/APG/Streams/Command.h new file mode 100644 index 00000000000..eae0f5ecb5f --- /dev/null +++ b/ACE/examples/APG/Streams/Command.h @@ -0,0 +1,40 @@ +/* -*- C++ -*- */ +// $Id$ + +#ifndef COMMAND_H +#define COMMAND_H + +#include "ace/SString.h" +#include "ace/Message_Block.h" + +// Listing 01 code/ch18 +class Command : public ACE_Data_Block +{ +public: + // Result Values + enum { + RESULT_PASS = 1, + RESULT_SUCCESS = 0, + RESULT_FAILURE = -1 + }; + + // Commands + enum { + CMD_UNKNOWN = -1, + CMD_ANSWER_CALL = 10, + CMD_RETRIEVE_CALLER_ID, + CMD_PLAY_MESSAGE, + CMD_RECORD_MESSAGE + } commands; + + int flags_; + int command_; + + void *extra_data_; + + int numeric_result_; + ACE_TString result_; +}; +// Listing 01 + +#endif /* COMMAND_H */ |