00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_GIOP_MESSAGE_VERSION_H
00017 #define TAO_GIOP_MESSAGE_VERSION_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "tao/TAO_Export.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "tao/Basic_Types.h"
00028 #include "tao/orbconf.h"
00029
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031
00032 class TAO_ORB_Core;
00033
00034
00035
00036
00037
00038
00039 class TAO_Export TAO_GIOP_Message_Version
00040 {
00041 public:
00042
00043
00044 CORBA::Octet major;
00045
00046
00047 CORBA::Octet major_version (void) const;
00048
00049
00050 CORBA::Octet minor;
00051
00052
00053 CORBA::Octet minor_version (void) const;
00054
00055
00056 TAO_GIOP_Message_Version (const TAO_GIOP_Message_Version &src);
00057
00058
00059 TAO_GIOP_Message_Version (CORBA::Octet maj = TAO_DEF_GIOP_MAJOR,
00060 CORBA::Octet min = TAO_DEF_GIOP_MINOR);
00061
00062
00063 void set_version (CORBA::Octet maj, CORBA::Octet min);
00064
00065
00066 TAO_GIOP_Message_Version &operator= (const TAO_GIOP_Message_Version &src);
00067
00068
00069 bool operator== (const TAO_GIOP_Message_Version &src) const;
00070 bool operator!= (const TAO_GIOP_Message_Version &src) const;
00071 };
00072
00073 TAO_END_VERSIONED_NAMESPACE_DECL
00074
00075 #if defined (__ACE_INLINE__)
00076 # include "tao/GIOP_Message_Version.inl"
00077 #endif
00078
00079 #include "ace/post.h"
00080 #endif