3 //=============================================================================
5 * @file GIOP_Message_Version.h
7 * GIOP Version utility class definition
9 * @author Chris Cleeland <cleeland@cs.wustl.edu>
10 * @author Carlos O' Ryan <coryan@uci.edu>
12 //=============================================================================
14 #ifndef TAO_GIOP_MESSAGE_VERSION_H
15 #define TAO_GIOP_MESSAGE_VERSION_H
17 #include /**/ "ace/pre.h"
19 #include /**/ "tao/TAO_Export.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/Basic_Types.h"
26 #include "tao/orbconf.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
33 * @class TAO_GIOP_Message_Version
35 * @brief Major and Minor version number of the Inter-ORB Protocol.
37 class TAO_Export TAO_GIOP_Message_Version
40 /// Major version number
43 /// Get major version number
44 CORBA::Octet
major_version () const;
46 /// Minor version number
49 /// Get minor version number
50 CORBA::Octet
minor_version () const;
53 TAO_GIOP_Message_Version (const TAO_GIOP_Message_Version
&) = default;
54 TAO_GIOP_Message_Version (TAO_GIOP_Message_Version
&&) = default;
56 /// Default constructor.
57 TAO_GIOP_Message_Version (CORBA::Octet maj
= TAO_DEF_GIOP_MAJOR
,
58 CORBA::Octet min
= TAO_DEF_GIOP_MINOR
);
60 /// Explicitly set the major and minor version.
61 void set_version (CORBA::Octet maj
, CORBA::Octet min
);
64 TAO_GIOP_Message_Version
&operator= (const TAO_GIOP_Message_Version
&) = default;
65 TAO_GIOP_Message_Version
&operator= (TAO_GIOP_Message_Version
&&) = default;
68 bool operator== (const TAO_GIOP_Message_Version
&src
) const;
69 bool operator!= (const TAO_GIOP_Message_Version
&src
) const;
72 TAO_END_VERSIONED_NAMESPACE_DECL
74 #if defined (__ACE_INLINE__)
75 # include "tao/GIOP_Message_Version.inl"
76 #endif /* __ACE_INLINE__ */
78 #include /**/ "ace/post.h"
79 #endif /*TAO_GIOP_VERSION_H */