Static Public Member Functions | Public Attributes

TAO_GIOP_Message_Generator_Parser_Impl Class Reference

This class holds all the different GIOP message generators and parsers. More...

#include <GIOP_Message_Generator_Parser_Impl.h>

Collaboration diagram for TAO_GIOP_Message_Generator_Parser_Impl:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static CORBA::Boolean check_revision (CORBA::Octet incoming_major, CORBA::Octet incoming_minor)
 Performs a check of the revision numbers.

Public Attributes

TAO_GIOP_Message_Generator_Parser_10 tao_giop_10
 Version 1.0 of GIOP.
TAO_GIOP_Message_Generator_Parser_11 tao_giop_11
 Version 1.1 of GIOP.
TAO_GIOP_Message_Generator_Parser_12 tao_giop_12
 Version 1.2 of GIOP.

Detailed Description

This class holds all the different GIOP message generators and parsers.

This class can be done away with if we want to use the svc.conf file to load the right GIOP protocol. But that would require some work as we need to make sure that we have the behaviours of lower versions in the higher versions.

Definition at line 41 of file GIOP_Message_Generator_Parser_Impl.h.


Member Function Documentation

CORBA::Boolean TAO_GIOP_Message_Generator_Parser_Impl::check_revision ( CORBA::Octet  incoming_major,
CORBA::Octet  incoming_minor 
) [static]

Performs a check of the revision numbers.

Definition at line 8 of file GIOP_Message_Generator_Parser_Impl.inl.

{
  CORBA::UShort const version_as_whole_num =
    incoming_major << 8 | incoming_minor;

  CORBA::UShort const max_allowable_version =
    TAO_DEF_GIOP_MAJOR << 8 | TAO_DEF_GIOP_MINOR;

  // If it's greater than the max, we know it's not allowed.
  if (version_as_whole_num > max_allowable_version)
    return false;

  // If it's less than the max, though, we still have to check for
  // each explicit version and only allow the ones we know work.
  switch (version_as_whole_num)
    {
    case 0x0100:
    case 0x0101:
    case 0x0102:
      return true;
    }

  return false;
}


Member Data Documentation

Version 1.0 of GIOP.

Definition at line 50 of file GIOP_Message_Generator_Parser_Impl.h.

Version 1.1 of GIOP.

Definition at line 53 of file GIOP_Message_Generator_Parser_Impl.h.

Version 1.2 of GIOP.

Definition at line 56 of file GIOP_Message_Generator_Parser_Impl.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines