[omniORB] interface repository

Svetlana G. Shasharina sveta@tech-x.txcorp.com
Tue, 7 May 2002 16:25:47 -0600 (MDT)


Hi,

This code would not compile in omniORB4:

CORBA::Object_var obj = orb->resolve_initial_references
                          ("InterfaceRepository");
  Repository_var repPtr = CORBA::Repository::_narrow(obj);
  CORBA::Contained_var contPtr = repPtr->lookup(objName);
  CORBA::InterfaceDef_var interfacePtr = CORBA::InterfaceDef::_narrow(contPtr);
  CORBA::InterfaceDef::FullInterfaceDescription_var fullInterface =
     interfacePtr->describe_interface();

I get the following:

TxConversion.cpp:89: `Repository_var' undeclared (first use this function)
TxConversion.cpp:89: (Each undeclared identifier is reported only once
TxConversion.cpp:89: for each function it appears in.)
TxConversion.cpp:89: parse error before `='
TxConversion.cpp:90: `Contained_var' undeclared in namespace `CORBA'
TxConversion.cpp:90: parse error before `='
TxConversion.cpp:91: `InterfaceDef_var' undeclared in namespace `CORBA'
TxConversion.cpp:91: parse error before `='
TxConversion.cpp:92: incomplete type `CORBA::InterfaceDef' does not have member `FullInterfaceDescription_var'

Did I get namespaces wrong?

Thanks,
Sveta Shasharina