GIOP_Message_Version.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file     GIOP_Message_Version.h
00006  *
00007  *  $Id: GIOP_Message_Version.h 79012 2007-07-24 14:21:05Z johnnyw $
00008  *
00009  *   GIOP Version utility class definition
00010  *
00011  *  @author  Chris Cleeland <cleeland@cs.wustl.edu>
00012  *  @author  Carlos O' Ryan <coryan@uci.edu>
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 /* ACE_LACKS_PRAGMA_ONCE */
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  * @class TAO_GIOP_Message_Version
00036  *
00037  * @brief Major and Minor version number of the Inter-ORB Protocol.
00038  */
00039 class TAO_Export TAO_GIOP_Message_Version
00040 {
00041 public:
00042 
00043   /// Major version number
00044   CORBA::Octet major;
00045 
00046   /// Get major version number
00047   CORBA::Octet major_version (void) const;
00048 
00049   /// Minor version number
00050   CORBA::Octet minor;
00051 
00052   /// Get minor version number
00053   CORBA::Octet minor_version (void) const;
00054 
00055   /// Copy constructor
00056   TAO_GIOP_Message_Version (const TAO_GIOP_Message_Version &src);
00057 
00058   /// Default constructor.
00059   TAO_GIOP_Message_Version (CORBA::Octet maj = TAO_DEF_GIOP_MAJOR,
00060                             CORBA::Octet min = TAO_DEF_GIOP_MINOR);
00061 
00062   /// Explicitly set the major and minor version.
00063   void set_version (CORBA::Octet maj, CORBA::Octet min);
00064 
00065   /// Copy operator.
00066   TAO_GIOP_Message_Version &operator= (const TAO_GIOP_Message_Version &src);
00067 
00068   /// Equality operator
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 /* __ACE_INLINE__ */
00078 
00079 #include /**/ "ace/post.h"
00080 #endif /*TAO_GIOP_VERSION_H */

Generated on Tue Feb 2 17:37:52 2010 for TAO by  doxygen 1.4.7