Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / Streams / Command.h
blob0a657802a6bb19823c1403d9290f2dbc48e5064c
1 /* -*- C++ -*- */
2 #ifndef COMMAND_H
3 #define COMMAND_H
5 #include "ace/SString.h"
6 #include "ace/Message_Block.h"
8 // Listing 01 code/ch18
9 class Command : public ACE_Data_Block
11 public:
12 // Result Values
13 enum {
14 RESULT_PASS = 1,
15 RESULT_SUCCESS = 0,
16 RESULT_FAILURE = -1
19 // Commands
20 enum {
21 CMD_UNKNOWN = -1,
22 CMD_ANSWER_CALL = 10,
23 CMD_RETRIEVE_CALLER_ID,
24 CMD_PLAY_MESSAGE,
25 CMD_RECORD_MESSAGE
26 } commands;
28 int flags_;
29 int command_;
31 void *extra_data_;
33 int numeric_result_;
34 ACE_TString result_;
36 // Listing 01
38 #endif /* COMMAND_H */