24 #define private public
25 #include <omniORB4/CORBA.h>
38 using namespace YACS::ENGINE;
58 DEBTRACE(
"+++++++++++++++++" << getName() <<
" +++++++++++++++++" );
61 std::cerr <<
"CORBAComponent::destructor:refcount: " <<
_objComponent->_PR_getobj()->pd_refCount << std::endl;
80 std::cerr <<
"CORBAComponent::unload : not implemented " << std::endl;
86 std::cerr <<
"CORBAComponent::getCompoPtr:refCount: " <<
_objComponent->_PR_getobj()->pd_refCount << std::endl;
111 std::cerr <<
"CORBAComponent::load:refCount: " <<
_objComponent->_PR_getobj()->pd_refCount << std::endl;
114 catch(CORBA::COMM_FAILURE& ex)
116 cerr <<
"Caught system exception COMM_FAILURE -- unable to contact the "
117 <<
"object." << endl;
120 catch(CORBA::SystemException& ex)
122 cerr <<
"Caught a CORBA::SystemException." ;
125 CORBA::TypeCode_var tc = tmp.type();
126 const char *
p = tc->name();
134 catch(CORBA::Exception& ex)
136 cerr <<
"Caught CORBA::Exception. " ;
139 CORBA::TypeCode_var tc = tmp.type();
140 const char *
p = tc->name();
148 catch(omniORB::fatalException& fe)
150 cerr <<
"Caught omniORB::fatalException:" << endl;
151 cerr <<
" file: " << fe.file() << endl;
152 cerr <<
" line: " << fe.line() << endl;
153 cerr <<
" mesg: " << fe.errmsg() << endl;
158 cerr <<
"Caught unknown exception." << endl;
163 cerr <<
"Can't get reference to object (or it was nil)." << endl;
197 ostringstream stream;