Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Message_Semantics.h
blob5dba142877aa9de27e53321eeace5c2dfda7fe84
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Message_Semantics.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TAO_MESSAGE_SEMANTICS_H
12 #define TAO_MESSAGE_SEMANTICS_H
14 #include /**/ "ace/pre.h"
16 #include "tao/orbconf.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 struct TAO_Message_Semantics
26 enum Type
28 TAO_ONEWAY_REQUEST = 0,
29 TAO_TWOWAY_REQUEST = 1,
30 TAO_REPLY
33 enum Mode
35 TAO_SYNCH_MODE,
36 TAO_ASYNCH_CALLBACK,
37 TAO_ASYNCH_POLL
40 TAO_Message_Semantics ()
41 : type_ (TAO_TWOWAY_REQUEST), mode_ (TAO_SYNCH_MODE) {}
42 TAO_Message_Semantics (Type type)
43 : type_ (type), mode_ (TAO_SYNCH_MODE) {}
44 TAO_Message_Semantics (Type type, Mode mode)
45 : type_ (type), mode_ (mode) {}
47 Type type_;
48 Mode mode_;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
55 #endif /* TAO_MESSAGE_SEMANTICS_H */