24 #define private public
25 #include <omniORB4/CORBA.h>
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;
109 std::cerr <<
"CORBAComponent::load:refCount: " <<
_objComponent->_PR_getobj()->pd_refCount << std::endl;
112 catch(CORBA::COMM_FAILURE&
ex)
114 cerr <<
"Caught system exception COMM_FAILURE -- unable to contact the "
115 <<
"object." << endl;
118 catch(CORBA::SystemException&
ex)
120 cerr <<
"Caught a CORBA::SystemException." ;
123 CORBA::TypeCode_var tc = tmp.type();
124 const char *
p = tc->name();
132 catch(CORBA::Exception&
ex)
134 cerr <<
"Caught CORBA::Exception. " ;
137 CORBA::TypeCode_var tc = tmp.type();
138 const char *
p = tc->name();
146 catch(omniORB::fatalException& fe)
148 cerr <<
"Caught omniORB::fatalException:" << endl;
149 cerr <<
" file: " << fe.file() << endl;
150 cerr <<
" line: " << fe.line() << endl;
151 cerr <<
" mesg: " << fe.errmsg() << endl;
156 cerr <<
"Caught unknown exception." << endl;
161 cerr <<
"Can't get reference to object (or it was nil)." << endl;
195 ostringstream stream;
Class for CORBA component instance.
virtual std::string getKind() const
Return the component kind.
virtual ComponentInstance * clone() const
Clone the component instance.
virtual ~CORBAComponent()
virtual void load(Task *askingNode)
Load the component.
virtual CORBA::Object_ptr getCompoPtr()
CORBAComponent(const std::string &name)
CORBAComponent constructor.
CORBA::Object_var _objComponent
virtual ComponentInstance * cloneAlways() const
virtual std::string getKindForNode() const
virtual void unload(Task *askingNode)
Unload the component.
virtual std::string getFileRepr() const
For dump in file.
virtual bool isLoaded(Task *askingNode) const
Is the component instance already loaded ?
virtual ServiceNode * createNode(const std::string &name)
Create a ServiceNode with this component instance and no input or output port.
Class for CORBA Service Node.
Base class for all component instances.
const std::string & getCompoName() const
CORBA::Object_var getFromNS(const char *entry) const
Class for calculation node associated with a component service.
virtual void setComponent(ComponentInstance *compo)
Associate an existing component instance to this service node AND check the consistency regarding the...
YACSRUNTIMESALOME_EXPORT RuntimeSALOME * getSALOMERuntime()