repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git]
/
ACE
/
examples
/
APG
/
Streams
/
Command.h
blob
0a657802a6bb19823c1403d9290f2dbc48e5064c
1
/* -*- C++ -*- */
2
#ifndef COMMAND_H
3
#define COMMAND_H
4
5
#include
"ace/SString.h"
6
#include
"ace/Message_Block.h"
7
8
// Listing 01 code/ch18
9
class
Command
:
public
ACE_Data_Block
10
{
11
public
:
12
// Result Values
13
enum
{
14
RESULT_PASS
=
1
,
15
RESULT_SUCCESS
=
0
,
16
RESULT_FAILURE
= -
1
17
};
18
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
;
27
28
int
flags_
;
29
int
command_
;
30
31
void
*
extra_data_
;
32
33
int
numeric_result_
;
34
ACE_TString result_
;
35
};
36
// Listing 01
37
38
#endif
/* COMMAND_H */