63 f <<
"(type Sequence) ";
68 f <<
" " << *((*sA)[
i]);
109 DEBTRACE(
"CppComponent::~CppComponent()");
116 Any ** argIn,
Any ** argOut)
122 std::ostringstream sDebug;
124 for (
i=0;
i<nbIn;
i++) {
125 sDebug << *(argIn[
i]);
132 __run(
__obj, service, nbIn, nbOut, argIn, argOut, &return_code);
134 if (return_code.
code != 0) {
136 std::cerr << sDebug <<
" ???" << std::endl;
144 for (
i=0;
i<nbOut;
i++) {
145 sDebug <<
" " << *(argOut[
i]);
156 DEBTRACE(
"CppComponent::unload : not implemented ");
162 return NULL !=
__obj;
176 throw Exception(
"The type of container should be CPP for component CPP !");
200 throw Exception(
"CppComponent::load : Error while trying to create a new component.");
: Interface for management of storage of data formated dynamically in its TypeCode....
virtual std::string getStringValue() const =0
virtual int getIntValue() const =0
virtual double getDoubleValue() const =0
virtual bool getBoolValue() const =0
const TypeCode * getType() const
Base class for all component instances.
bool _isAttachedOnCloning
std::string _compoName
WARNING : _compoName identify only the component type.
const std::string & getInstanceName() const
virtual void start(const Task *askingNode)=0
virtual bool isAlreadyStarted(const Task *askingNode) const =0
CppComponent(const std::string &name)
CppComponent constructor.
virtual std::string getKindForNode() const
void run(const char *service, int nbIn, int nbOut, Any **argIn, Any **argOut)
virtual YACS::ENGINE::ComponentInstance * cloneAlways() const
virtual void load(Task *askingNode)
Load the component instance.
YACS::ENGINE::TerminateFunction __terminate
virtual std::string getKind() const
Return the component kind.
YACS::ENGINE::RunFunction __run
virtual void unload(Task *askingNode)
Unload the component.
virtual YACS::ENGINE::ComponentInstance * clone() const
Clone the component instance.
virtual bool isLoaded(Task *askingNode) const
Is the component instance already loaded ?
virtual ServiceNode * createNode(const std::string &name)
void createInternalInstance(const std::string &componentName, void *&obj, RunFunction &r, TerminateFunction &t)
bool loadComponentLibrary(const std::string &componentName)
Class for C++ Nodes (in process component)
virtual Container * createContainer(const std::string &kind="")
unsigned int size() 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...
Base class for all type objects.
ostream & operator<<(ostream &os, const OutputCorbaPort &p)
YACSLIBENGINE_EXPORT Runtime * getRuntime()