1 // Copyright (C) 2006-2024 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _CORBANODE_HXX_
21 #define _CORBANODE_HXX_
23 #include "YACSRuntimeSALOMEExport.hxx"
24 #include "ServiceNode.hxx"
26 #include "yacsconfig.h"
28 #include "DSC_Engines.hh"
30 #include <omniORB4/CORBA.h>
37 /*! \brief Class for CORBA Service Node
42 * \see OutputCorbaPort
44 class YACSRUNTIMESALOME_EXPORT CORBANode : public ServiceNode
47 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
49 CORBANode(const CORBANode& other,ComposedNode *father);
50 CORBANode(const std::string& name);
51 virtual void execute();
52 virtual ServiceNode* createNode(const std::string& name);
53 virtual std::string getKind() const;
54 static const char KIND[];
55 virtual std::string typeName() {return "YACS__ENGINE__CORBANode";}
57 static const char IMPL_NAME[];
60 /*! \brief Class for Salome component Service Node
65 * \see OutputCorbaPort
67 class YACSRUNTIMESALOME_EXPORT SalomeNode : public ServiceNode
70 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
72 SalomeNode(const SalomeNode& other,ComposedNode *father);
73 SalomeNode(const std::string& name);
74 virtual ~SalomeNode();
75 virtual void execute();
76 virtual ServiceNode* createNode(const std::string& name);
77 virtual std::string getKind() const;
78 static const char KIND[];
79 virtual std::string typeName() {return "YACS__ENGINE__SalomeNode";}
81 virtual void initService();
82 virtual void connectService();
83 virtual void disconnectService();
84 virtual void cleanNodes();
85 std::list<Engines::ConnectionManager::connectionId> ids;
86 virtual void addDatastreamPortToInitMultiService(const std::string & port_name,
89 virtual void shutdown(int level);
90 virtual std::string getContainerLog();
93 YACS::BASES::Mutex _mutex;
95 Engines::Superv_Component::seq_multiple_param _param;