GIOP_Message_Version.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file     GIOP_Message_Version.h
00006  *
00007  *  GIOP_Message_Version.h,v 1.7 2005/11/02 07:13:03 ossama Exp
00008  *
00009  *   GIOP Version utility class definition
00010  *
00011  *
00012  *  @author  Chris Cleeland <cleeland@cs.wustl.edu>
00013  *  @author  Carlos O' Ryan <coryan@uci.edu>
00014  */
00015 //=============================================================================
00016 
00017 #ifndef TAO_GIOP_MESSAGE_VERSION_H
00018 #define TAO_GIOP_MESSAGE_VERSION_H
00019 
00020 #include /**/ "ace/pre.h"
00021 
00022 #include "tao/TAO_Export.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #include "tao/Basic_Types.h"
00029 #include "tao/orbconf.h"
00030 
00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00032 
00033 class TAO_ORB_Core;
00034 
00035 /**
00036  * @class TAO_GIOP_Message_Version
00037  *
00038  * @brief Major and Minor version number of the Inter-ORB Protocol.
00039  */
00040 class TAO_Export TAO_GIOP_Message_Version
00041 {
00042 public:
00043 
00044   /// Major version number
00045   CORBA::Octet major;
00046 
00047   /// Minor version number
00048   CORBA::Octet minor;
00049 
00050   /// Copy constructor
00051   TAO_GIOP_Message_Version (const TAO_GIOP_Message_Version &src);
00052 
00053   /// Default constructor.
00054   TAO_GIOP_Message_Version (CORBA::Octet maj = TAO_DEF_GIOP_MAJOR,
00055                             CORBA::Octet min = TAO_DEF_GIOP_MINOR);
00056 
00057   /// Explicitly set the major and minor version.
00058   void set_version (CORBA::Octet maj, CORBA::Octet min);
00059 
00060   /// Copy operator.
00061   TAO_GIOP_Message_Version &operator= (const TAO_GIOP_Message_Version &src);
00062 
00063   /// Equality operator
00064   bool operator== (const TAO_GIOP_Message_Version &src);
00065   bool operator!= (const TAO_GIOP_Message_Version &src);
00066 };
00067 
00068 TAO_END_VERSIONED_NAMESPACE_DECL
00069 
00070 #if defined (__ACE_INLINE__)
00071 # include "tao/GIOP_Message_Version.inl"
00072 #endif /* __ACE_INLINE__ */
00073 
00074 #include /**/ "ace/post.h"
00075 #endif /*TAO_GIOP_VERSION_H */

Generated on Thu Nov 9 11:54:12 2006 for TAO by doxygen 1.3.6