include $(top_srcdir)/adm_local/make_common_starter.am
-SUBDIRS = src
+SUBDIRS =
if SALOME_MODULE
-SUBDIRS += idl resources bin
+SUBDIRS += idl
+endif
+
+SUBDIRS += src
+
+if SALOME_MODULE
+SUBDIRS += resources bin
endif
if SPHINX_IS_OK
src/daSalome/daGUI/daGuiImpl/Makefile
src/daSalome/daGUI/daEficasWrapper/Makefile
src/daSalome/daGUI/daEficasWrapper/eficasWrapper.py
+ src/daSalome/daGUI/daGuiComponent/Makefile
src/tests/Makefile
src/tests/daSalome/Makefile
src/tests/daSalome/test000_Blue_AnalysisFile.py
#ifndef _ADAO_IDL_
#define _ADAO_IDL_
+#include "SALOME_Component.idl"
#include "DSC_Engines.idl"
-#include "SALOME_Exception.idl"
-#include "SALOME_PACOExtension.idl"
module ADAO
{
-typedef sequence<string> stringvec;
-typedef sequence<double> dblevec;
-typedef sequence<long> intvec;
-typedef Engines::dataref dataref;
-
-
+ interface ADAO_GUI_COMPONENT : Engines::Superv_Component
+ {
+ /*!
+ * Test that the component is ok
+ */
+ void print_ping();
+ };
};
-
#endif
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-SUBDIRS = daGuiImpl daEficasWrapper
+SUBDIRS = daGuiImpl daEficasWrapper daGuiComponent
include $(top_srcdir)/adm_local/make_common_starter.am
-salomepython_PYTHON= ADAOGUI.py
+salomepython_PYTHON= ADAOGUI.py ADAO.py
--- /dev/null
+
+include $(top_srcdir)/adm_local/make_common_starter.am
+
+AM_CFLAGS=$(SALOME_INCLUDES) -fexceptions
+
+lib_LTLIBRARIES= libADAOEngine.la
+salomeinclude_HEADERS= adaogui_component.hxx
+
+libADAOEngine_la_SOURCES = adaogui_component.cxx
+nodist_libADAOEngine_la_SOURCES =
+libADAOEngine_la_CXXFLAGS = -I$(top_builddir)/idl $(KERNEL_INCLUDES) -I/usr/include
+libADAOEngine_la_LIBADD = -L$(top_builddir)/idl -lADAO ${KERNEL_LIBS}
+libADAOEngine_la_LDFLAGS =
+
--- /dev/null
+#include <string>
+#include <iostream>
+#include "adaogui_component.hxx"
+
+using namespace std;
+
+//! Constructor for component "cppcompos" instance
+/*!
+ *
+ */
+ADAO_GUI_COMPONENT_i::ADAO_GUI_COMPONENT_i(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName)
+: Superv_Component_i(orb, poa, contId, instanceName, interfaceName)
+{
+ _thisObj = this ;
+ _id = _poa->activate_object(_thisObj);
+}
+
+ADAO_GUI_COMPONENT_i::ADAO_GUI_COMPONENT_i(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ Engines::Container_ptr container,
+ const char *instanceName,
+ const char *interfaceName)
+: Superv_Component_i(orb, poa, container, instanceName, interfaceName)
+{
+ _thisObj = this ;
+ _id = _poa->activate_object(_thisObj);
+}
+
+void
+ADAO_GUI_COMPONENT_i::destroy()
+{
+ Engines_Component_i::destroy();
+}
+
+CORBA::Boolean
+ADAO_GUI_COMPONENT_i::init_service(const char * service_name)
+{
+ CORBA::Boolean rtn = true;
+ return rtn;
+}
+
+void
+ADAO_GUI_COMPONENT_i::print_ping()
+{
+ std::cerr << "ADAO_GUI_COMPONENT_i ping" << std::endl;
+}
+//! Destructor for component "ADAO_GUI_COMPONENT_i" instance
+ADAO_GUI_COMPONENT_i::~ADAO_GUI_COMPONENT_i()
+{
+}
+
+extern "C"
+{
+ PortableServer::ObjectId * ADAOEngine_factory(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName)
+ {
+ MESSAGE("PortableServer::ObjectId * ADAOEngine_factory()");
+ ADAO_GUI_COMPONENT_i * myEngine = new ADAO_GUI_COMPONENT_i(orb, poa, contId, instanceName, interfaceName);
+ return myEngine->getId() ;
+ }
+}
+
--- /dev/null
+#ifndef _ADAO_GUI_COMPONENT_HXX_
+#define _ADAO_GUI_COMPONENT_HXX_
+
+#include <SALOME_Component.hh>
+#include "Superv_Component_i.hxx"
+#include "ADAO.hh"
+
+class ADAO_GUI_COMPONENT_i:
+ public virtual POA_ADAO::ADAO_GUI_COMPONENT,
+ public virtual Superv_Component_i
+{
+ public:
+ ADAO_GUI_COMPONENT_i(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName, const char *interfaceName);
+ ADAO_GUI_COMPONENT_i(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa,
+ Engines::Container_ptr container,
+ const char *instanceName, const char *interfaceName);
+ virtual ~ADAO_GUI_COMPONENT_i();
+
+ void destroy();
+ CORBA::Boolean init_service(const char * service_name);
+
+ virtual void print_ping();
+};
+
+extern "C"
+{
+ PortableServer::ObjectId * ADAOEngine_factory(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName);
+}
+#endif
+