Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

utility.h File Reference


Detailed Description

Lifted from examples found in Henning and Vinoski.

Utilities to help with resolving initial references and and finding object references in the NameService. These utilities were lifted directly from Henning and Vinoski's Advanced CORBA Programming.

#include "BP_CORBA.h"

Go to the source code of this file.

Functions

template<class T> T::_ptr_type resolve_init (CORBA::ORB_ptr orb, const char *id)
 Template version of resolve_initial_references.

template<class T> T::_ptr_type resolve_name (CosNaming::NamingContext_ptr nc, const CosNaming::Name &name)
 Use to resolve an name in the NameService.


Function Documentation

template<class T>
T::_ptr_type resolve_init CORBA::ORB_ptr  orb,
const char *  id
[inline]
 

Template version of resolve_initial_references.

A template utility function to use where ever you might use ORB::resolve_initial_references. This code is borrowed from Steve Vinoski's book: Advanced CORBA Programming in C++

Parameters:
orb - The orb to use
id The Id to pass into resolve_initial_references

Bug:
Some compilers might not be able to use the T::_ptr_type. If your compiler spews on it, change the typename modifier to T* and remove the T::_ptr_type

template<class T>
T::_ptr_type resolve_name CosNaming::NamingContext_ptr  nc,
const CosNaming::Name &  name
[inline]
 

Use to resolve an name in the NameService.

Use this operation where ever you might use NamingContext::resolve This code is borrowed from Steve Vinoski's book: Advanced CORBA Programming in C++

Parameters:
nc The NamingContext_ptr to start from
name A refernce to a CosNaming::Name

Bug:
Some compilers might not be able to use the T::_ptr_type. If your compiler spews on it, change the typename modifier to T* and remove the T::_ptr_type