Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

IRPlus Class Reference

Interface Repository with extensions (IR Plus). More...

#include <ReadIR.h>

List of all members.

Public Methods

 IRPlus (CORBA::ORB_ptr _orb)
 Constructor. More...

virtual ~IRPlus ()
 Destructor. More...

void RecurseIR (CORBA::Repository_ptr pIR, DynamicAny::DynAnyFactory_ptr dynFact, CORBA::Contained_ptr ptr, const char *path)
 Read the entire CORBA Interface Repository and build the IRplus. More...

void createTables ()
 Set up the database tables. More...

int Init ()
 Set up the IRPlus. More...


Public Attributes

JTCMonitor monitor
 Synchronize access. More...

SCInterfaceRepository IRC
 The actual object instance. More...

DOConnectionpCon
 Connection to MySQL. More...

CORBA::ORB_ptr orb
 Pointer to the ORB. More...


Private Methods

void InsertIRFieldRecord (SCMethParam *pParm, DOSnapshot *pTab, const CString &path, const char *fieldName)
 Insert new record into irfield. More...

void RecurseFields (SCMethParam *pParm, DOSnapshot *pTab, const CString &path, TypeCodeList *tlist, CORBA::TypeCode_ptr tcp, const char *hint=NULL)
 Recurse down a DynAny and add sample entries to the IRplus database. More...

SCInterfaceMethodnewMeth (const char *Path)
 lookup the path and build a new SCInterfaceMethod. More...

SCMethParamnewParam (SCInterfaceMethod *pMeth, const char *Param, InOutExcept kind, CORBA::TypeCode_ptr ptc)
 lookup the parameter and build a new SCMethParam. More...

void FetchParamFields (DOSnapshot *pTab, SCMethParam *pParm)
 scan the irplus table and copy any type conversion specifications. More...


Private Attributes

int midNum
 unique method ID number. More...

int pidNum
 unique parameter ID number. More...


Detailed Description

Interface Repository with extensions (IR Plus).

Definition at line 31 of file ReadIR.h.


Constructor & Destructor Documentation

IRPlus::IRPlus ( CORBA::ORB_ptr _orb ) [inline]
 

Constructor.

Definition at line 70 of file ReadIR.h.

IRPlus::~IRPlus ( ) [inline, virtual]
 

Destructor.

Definition at line 78 of file ReadIR.h.


Member Function Documentation

void IRPlus::FetchParamFields ( DOSnapshot * pTab,
SCMethParam * pParm ) [private]
 

scan the irplus table and copy any type conversion specifications.

Definition at line 568 of file ReadIR.cpp.

int IRPlus::Init ( )
 

Set up the IRPlus.

Definition at line 729 of file ReadIR.cpp.

Referenced by SOAPBridge_TypeConversions_impl::Set(), and initIRPlus().

void IRPlus::InsertIRFieldRecord ( SCMethParam * pParm,
DOSnapshot * pTab,
const CString & path,
const char * fieldName ) [private]
 

Insert new record into irfield.

Definition at line 286 of file ReadIR.cpp.

Referenced by RecurseFields().

void IRPlus::RecurseFields ( SCMethParam * pParm,
DOSnapshot * pTab,
const CString & path,
TypeCodeList * tlist,
CORBA::TypeCode_ptr tcp,
const char * hint = NULL ) [private]
 

Recurse down a DynAny and add sample entries to the IRplus database.

Parameters:
pParm   The current method parameter
pTab   The irfield table.
path   The current field path.
tlist   List of TypeCode we've seen so far, to avoid infinite recursion.
tcp   The type code to parse.
hint   The last alias we've found, to make more representative element names.

Definition at line 322 of file ReadIR.cpp.

Referenced by FetchParamFields().

void IRPlus::RecurseIR ( CORBA::Repository_ptr pIR,
DynamicAny::DynAnyFactory_ptr dynFact,
CORBA::Contained_ptr ptr,
const char * path )
 

Read the entire CORBA Interface Repository and build the IRplus.

Parameters:
pIR   The CORBA Interface Repository.
dynFact   The factory to create Dynamic Any objects.
ptr   The "Contained" object to recurse.
path   The path to the current object.

Definition at line 574 of file ReadIR.cpp.

Referenced by Init().

void IRPlus::createTables ( )
 

Set up the database tables.

Definition at line 699 of file ReadIR.cpp.

Referenced by Init().

SCInterfaceMethod * IRPlus::newMeth ( const char * Path ) [private]
 

lookup the path and build a new SCInterfaceMethod.

Definition at line 526 of file ReadIR.cpp.

Referenced by RecurseIR().

SCMethParam * IRPlus::newParam ( SCInterfaceMethod * pMeth,
const char * Param,
InOutExcept kind,
CORBA::TypeCode_ptr ptc ) [private]
 

lookup the parameter and build a new SCMethParam.

Definition at line 547 of file ReadIR.cpp.

Referenced by RecurseIR().


Member Data Documentation

SCInterfaceRepository IRPlus::IRC
 

The actual object instance.

Definition at line 63 of file ReadIR.h.

int IRPlus::midNum [private]
 

unique method ID number.

Definition at line 34 of file ReadIR.h.

JTCMonitor IRPlus::monitor
 

Synchronize access.

Definition at line 61 of file ReadIR.h.

CORBA::ORB_ptr IRPlus::orb
 

Pointer to the ORB.

Definition at line 67 of file ReadIR.h.

DOConnection * IRPlus::pCon
 

Connection to MySQL.

Definition at line 65 of file ReadIR.h.

int IRPlus::pidNum [private]
 

unique parameter ID number.

Definition at line 36 of file ReadIR.h.


The documentation for this class was generated from the following files:
This documentation is part of the "SOAP to CORBA bridge" project
Copyright © 2000 by Lifeline Networks bv.
All rights are reserved.