AddComponentEngine AdditionComponentEngine DivComponentEngine
MulComponentEngine SubComponentEngine SyrComponentEngine DynInvoke
TypesCheckEngine DataStreamFactoryEngine SIGNALSComponentEngine
- UndefinedSymbolComponentEngine SalomeIDLCOMPONENT
+ SalomeIDLCOMPONENT
)
+IF(NOT WIN32)
+ LIST(APPEND _${PROJECT_NAME}_exposed_targets
+ UndefinedSymbolComponentEngine)
+ENDIF(NOT WIN32)
+
+
+
# Add all targets to the build-tree export set
EXPORT(TARGETS ${_${PROJECT_NAME}_exposed_targets}
FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake)
SET(COMPONENT_TypesCheckEngine TypesCheckEngine)
SET(COMPONENT_DataStreamFactoryEngine DataStreamFactoryEngine)
SET(COMPONENT_SIGNALSComponentEngine SIGNALSComponentEngine)
-SET(COMPONENT_UndefinedSymbolComponentEngine UndefinedSymbolComponentEngine)
+IF(NOT WIN32)
+ SET(COMPONENT_UndefinedSymbolComponentEngine UndefinedSymbolComponentEngine)
+ENDIF(NOT WIN32)
SET(COMPONENT_DynInvoke DynInvoke)
SET(COMPONENT_SalomeIDLCOMPONENT ${SalomeIDLCOMPONENT})
\ No newline at end of file
--- /dev/null
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// SuperVisionTest AddComponent : example of component that adds two numbers
+// File : AddComponent.hxx
+// Author : Roman NIKOLAEV, OPEN CASCADE
+// $Header:
+//
+#ifndef _ADD_COMPONENT_HXX_
+#define _ADD_COMPONENT_HXX_
+
+#ifdef WIN32
+# if defined ADDCOMPONENTENGINE_EXPORTS || defined AddComponentEngine_EXPORTS
+# define ADDCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define ADDCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define ADDCOMPONENTENGINE_EXPORT
+#endif
+
+#endif _ADD_COMPONENT_HXX_
#include <string>
#include <stdio.h>
-#ifndef WNT
+#ifndef WIN32
#include <unistd.h>
#else
#include <process.h>
//CCRT
#include <sstream>
#include <time.h>
+#ifndef WIN32
#include <sys/time.h>
#include <sys/stat.h>
+#endif
//end-CCRT
#include "Container_init_python.hxx"
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <process.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "AddComponent_Impl::Add is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "AddComponent_Impl::Add( " << x << " , " << y << " , " << z
<< " ) returns " << (x - y) << " after " << S << " seconds" )
LastAddition = z ;
void AddComponent_Impl::Setx( CORBA::Double x ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
xx = x ;
}
void AddComponent_Impl::Sety( CORBA::Double y ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
yy = y ;
}
CORBA::Double AddComponent_Impl::Addxy() {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
double zz = xx + yy ;
LastAddition = zz ;
return zz;
CORBA::Double AddComponent_Impl::AddyTox( CORBA::Double y ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
double zz = xx + y ;
LastAddition = zz ;
return zz;
const char *instanceName,
const char *interfaceName)
{
+#ifndef WIN32
MESSAGE("AddComponentEngine_factory AddComponentEngine ("
<< instanceName << "," << interfaceName << "," << getpid() << ")");
+#else
+ MESSAGE("AddComponentEngine_factory AddComponentEngine ("
+ << instanceName << "," << interfaceName << "," << _getpid() << ")");
+#endif
AddComponent_Impl * myAddComponent
= new AddComponent_Impl(orb, poa, contId, instanceName, interfaceName);
return myAddComponent->getId() ;
#ifndef _ADDINTERFACE_IMPL_HXX_
#define _ADDINTERFACE_IMPL_HXX_
-//#include <iostream.h>
+
+#include "AddComponent.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(AddComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class AddComponent_Impl : public POA_SuperVisionTest::AddComponent ,
- public Engines_Component_i {
+class ADDCOMPONENTENGINE_EXPORT AddComponent_Impl : public POA_SuperVisionTest::AddComponent ,
+ public Engines_Component_i {
public:
AddComponent_Impl() ;
AddComponent_Impl( CORBA::ORB_ptr orb,
};
extern "C"
+ ADDCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * AddComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "Adder_Impl::Add is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "Adder_Impl::Add( " << x << " , " << y << " , " << z
<< " ) returns " << -(x - y) << " after " << S << " seconds" )
LastAddition = z ;
sendMessage(NOTIF_STEP, "Adder_Impl::AddAndCompare is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "Adder_Impl::AddAndCompare( " << x << " , " << y << " , " << z
<< " ) returns " << -(x - y) << " after " << S << " seconds" )
LastAddition = z ;
int S;
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
LastAddition = z ;
endService( " Adder_Impl::SetLastResult" );
return ;
int S;
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
z = LastAddition ;
endService( " Adder_Impl::LastResult" );
return ;
#ifndef _ADDER_IMPL_HXX_
#define _ADDER_IMPL_HXX_
+#include "AddComponent.hxx"
#include <iostream>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(AddComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class Adder_Impl : public POA_SuperVisionTest::Adder ,
- public Engines_Component_i {
+class ADDCOMPONENTENGINE_EXPORT Adder_Impl : public POA_SuperVisionTest::Adder ,
+ public Engines_Component_i {
public:
Adder_Impl() ;
Adder_Impl( CORBA::ORB_ptr orb ,
SET(AddComponentEngine_HEADERS
AddComponent_Impl.hxx
Adder_Impl.hxx
+ AddComponent.hxx
)
# --- sources ---
--- /dev/null
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// File : AdditionComponent.hxx
+// Author : Roman NIKOLAEV, OPEN CASCADE
+// $Header:
+//
+#ifndef _ADDITION_COMPONENT_HXX_
+#define _ADDITION_COMPONENT_HXX_
+
+#ifdef WIN32
+# if defined ADDITIONCOMPONENTENGINE_EXPORTS || defined AdditionComponentEngine_EXPORTS
+# define ADDITIONCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define ADDITIONCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define ADDITIONCOMPONENTENGINE_EXPORT
+#endif
+
+#endif _ADDITION_COMPONENT_HXX_
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include "AdditionComponent_Impl.hxx"
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <process.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "AdditionInterface_Impl::Add is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
- MESSAGE( "AdditionInterface_Impl::Add( " << x << " , " << y << " , " << z
- << " ) returns " << (x - y) << " after " << S << " seconds" )
+#else
+ Sleep(S*1000);
+#endif
+ MESSAGE( "AdditionInterface_Impl::Add( " << x << " , " << y << " , " << z << " ) returns " << (x - y) << " after " << S << " seconds" )
LastAddition = z ;
endService( " AdditionInterface_Impl::Add" );
return (x - y) ;
void AdditionInterface_Impl::Setx( CORBA::Double x ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
xx = x ;
}
void AdditionInterface_Impl::Sety( CORBA::Double y ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
yy = y ;
}
CORBA::Double AdditionInterface_Impl::Addxy() {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
double zz = xx + yy ;
LastAddition = zz ;
return zz;
CORBA::Double AdditionInterface_Impl::AddyTox( CORBA::Double y ) {
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
double zz = xx + y ;
LastAddition = zz ;
return zz;
const char *instanceName,
const char *interfaceName)
{
+#ifndef WIN32
MESSAGE("AdditionComponentEngine_factory AdditionInterfaceEngine ("
<< instanceName << "," << interfaceName << "," << getpid() << ")");
+#else
+ MESSAGE("AdditionComponentEngine_factory AdditionInterfaceEngine ("
+ << instanceName << "," << interfaceName << "," << _getpid() << ")");
+#endif
AdditionInterface_Impl * myAdditionInterface
= new AdditionInterface_Impl(orb, poa, contId, instanceName, interfaceName);
return myAdditionInterface->getId() ;
#ifndef _ADDITIONINTERFACE_IMPL_HXX_
#define _ADDITIONINTERFACE_IMPL_HXX_
-//#include <iostream.h>
+#include "AdditionComponent.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(AdditionComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class AdditionInterface_Impl : public POA_AdditionComponent::AdditionInterface ,
- public Engines_Component_i {
+class ADDITIONCOMPONENTENGINE_EXPORT AdditionInterface_Impl : public POA_AdditionComponent::AdditionInterface ,
+ public Engines_Component_i {
public:
AdditionInterface_Impl() ;
AdditionInterface_Impl( CORBA::ORB_ptr orb,
};
extern "C"
+ ADDITIONCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * AdditionInterfaceEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "Adder_Impl::Add is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "Adder_Impl::Add( " << x << " , " << y << " , " << z
<< " ) returns " << -(x - y) << " after " << S << " seconds" )
LastAddition = z ;
sendMessage(NOTIF_STEP, "Adder_Impl::AddAndCompare is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "Adder_Impl::AddAndCompare( " << x << " , " << y << " , " << z
<< " ) returns " << -(x - y) << " after " << S << " seconds" )
LastAddition = z ;
int S;
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
LastAddition = z ;
endService( " Adder_Impl::SetLastResult" );
return ;
int S;
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
z = LastAddition ;
endService( " Adder_Impl::LastResult" );
return ;
#ifndef _ADDITION_ADDER_IMPL_HXX_
#define _ADDITION_ADDER_IMPL_HXX_
+#include "AdditionComponent.hxx"
#include <iostream>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(AdditionComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class Adder_Impl : public POA_AdditionComponent::Adder ,
- public Engines_Component_i {
+class ADDITIONCOMPONENTENGINE_EXPORT Adder_Impl : public POA_AdditionComponent::Adder ,
+ public Engines_Component_i {
public:
Adder_Impl() ;
Adder_Impl( CORBA::ORB_ptr orb ,
SET(AdditionComponentEngine_SOURCES
Addition_Adder_Impl.cxx
AdditionComponent_Impl.cxx
+ AdditionComponent.hxx
)
# bin programs
TypesCheck
DataStreamComponent
SIGNALSComponent
- UndefinedSymbolComponent
SIGNALSComponent_Swig
TestFunctions
)
+IF(NOT WIN32)
+ SET(SUBDIRS_UNDEFINED UndefinedSymbolComponent)
+ENDIF(NOT WIN32)
+
SET(SUBDIRS
${SUBDIRS_COMMON}
+ ${SUBDIRS_UNDEFINED}
)
FOREACH(dir ${SUBDIRS})
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include "DataStreamComponent_Impl.hxx"
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <process.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
const char *instanceName,
const char *interfaceName)
{
+#ifndef WIN32
MESSAGE("DataStreamFactoryEngine_factory DataStreamFactoryEngine ("
<< instanceName << "," << interfaceName << "," << getpid() << ")");
+#else
+ MESSAGE("DataStreamFactoryEngine_factory DataStreamFactoryEngine ("
+ << instanceName << "," << interfaceName << "," << _getpid() << ")");
+#endif
DataStreamFactory_Impl * myDataStreamFactory
= new DataStreamFactory_Impl(orb, poa, contId, instanceName, interfaceName);
return myDataStreamFactory->getId() ;
#ifndef _DATASTREAMINTERFACE_IMPL_HXX_
#define _DATASTREAMINTERFACE_IMPL_HXX_
+#ifdef WIN32
+# if defined DATASTREAMFACTORYENGINE_EXPORTS || defined DataStreamFactoryEngine_EXPORTS
+# define DATASTREAMFACTORYENGINE_EXPORT __declspec( dllexport )
+# else
+# define DATASTREAMFACTORYENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DATASTREAMFACTORYENGINE_EXPORT
+#endif
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(DataStreamComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class DataStreamFactory_Impl : public POA_DataStreamComponent::DataStreamFactory ,
- public Engines_Component_i {
+class DATASTREAMFACTORYENGINE_EXPORT DataStreamFactory_Impl : public POA_DataStreamComponent::DataStreamFactory ,
+ public Engines_Component_i {
public:
DataStreamFactory_Impl() ;
DataStreamFactory_Impl( CORBA::ORB_ptr orb,
};
extern "C"
+ DATASTREAMFACTORYENGINE_EXPORT
PortableServer::ObjectId * DataStreamFactoryEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
const char *interfaceName ) ;
-class DataStream_Impl : public POA_DataStreamComponent::DataStream ,
- public Engines_Component_i {
+class DATASTREAMFACTORYENGINE_EXPORT DataStream_Impl : public POA_DataStreamComponent::DataStream ,
+ public Engines_Component_i {
public:
DataStream_Impl() ;
DataStream_Impl( CORBA::ORB_ptr orb ,
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "Div is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
sendMessage(NOTIF_TRACE, "Div is Much More Difficult Operation");
MESSAGE("DivComponentEngine::Div( " << x << " , " << y << " , " << z
<< " ) after " << S << " seconds" )
#ifndef _DIVCOMPONENTENGINE_HXX_
#define _DIVCOMPONENTENGINE_HXX_
+#ifdef WIN32
+# if defined DIVCOMPONENTENGINE_EXPORTS || defined DivComponentEngine_EXPORTS
+# define DIVCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define DIVCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DIVCOMPONENTENGINE_EXPORT
+#endif
+
//#include <iostream.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(DivComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class DivComponentEngine : public POA_SuperVisionTest::DivComponent ,
- public Engines_Component_i {
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine : public POA_SuperVisionTest::DivComponent ,
+ public Engines_Component_i {
public:
DivComponentEngine() ;
DivComponentEngine( CORBA::ORB_ptr orb,
};
extern "C"
+ DIVCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * DivComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "Mul is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+ #ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "MulComponentEngine::Mul( " << x << " , " << y << " , " << z
<< " ) after " << S << " seconds" )
endService( " MulComponentEngine::Mul" );
#ifndef _MULCOMPONENTENGINE_HXX_
#define _MULCOMPONENTENGINE_HXX_
+#ifdef WIN32
+# if defined MULCOMPONENTENGINE_EXPORTS || defined MulComponentEngine_EXPORTS
+# define MULCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define MULCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define MULCOMPONENTENGINE_EXPORT
+#endif
+
//#include <iostream.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(MulComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class MulComponentEngine : public POA_SuperVisionTest::MulComponent ,
- public Engines_Component_i {
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine : public POA_SuperVisionTest::MulComponent ,
+ public Engines_Component_i {
public:
MulComponentEngine() ;
MulComponentEngine( CORBA::ORB_ptr orb,
};
extern "C"
+ MULCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * MulComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
# header files / no moc processing
SET(SIGNALSComponentEngine_HEADERS
SIGNALSComponent_Impl.hxx
+ SIGNALSComponent_defines.hxx
)
# --- sources ---
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
#ifndef _SIGNALSCOMPONENTENGINE_HXX_
#define _SIGNALSCOMPONENTENGINE_HXX_
-//#include <iostream.h>
+#include "SIGNALSComponent_defines.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SIGNALSComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class SIGNALSComponentEngine : public POA_SuperVisionTest::SIGNALSComponent ,
- public Engines_Component_i {
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine : public POA_SuperVisionTest::SIGNALSComponent ,
+ public Engines_Component_i {
public:
SIGNALSComponentEngine() ;
SIGNALSComponentEngine( CORBA::ORB_ptr orb,
};
extern "C"
+ SIGNALSCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SIGNALSComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
#include <string>
#include <stdio.h>
-#ifndef WNT
+#ifndef WIN32
#include <unistd.h>
#else
#include <process.h>
//CCRT
#include <sstream>
#include <time.h>
+#ifndef WIN32
#include <sys/time.h>
#include <sys/stat.h>
+#endif
//end-CCRT
#include "Container_init_python.hxx"
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
CORBA::Long SIGNALSComponent_Impl::SIGSEGVfunc() {
beginService( " SIGNALSComponent_Impl::SIGSEGVfunc" );
+#ifndef WIN32
cout << pthread_self() << "SIGNALSComponent_Impl::SIGSEGVfunc" << endl ;
+#else
+ cout << pthread_self().p << "SIGNALSComponent_Impl::SIGSEGVfunc" << endl ;
+#endif
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+
+#ifndef WIN32
while ( S ) {
S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
long nullptr = *NULLPTR ;
endService( " SIGNALSComponent_Impl::SIGSEGVfunc" );
return nullptr ;
CORBA::Long SIGNALSComponent_Impl::SIGFPEfunc( CORBA::Long a , CORBA::Long b ) {
beginService( " SIGNALSComponent_Impl::SIGFPEfunc" );
+#ifndef WIN32
cout << pthread_self() << "SIGNALSComponent_Impl::SIGFPEfunc" << endl ;
+#else
+ cout << pthread_self().p << "SIGNALSComponent_Impl::SIGFPEfunc" << endl ;
+#endif
int S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
+#ifndef WIN32
while ( S ) {
S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
long c = a/b ;
endService( " SIGNALSComponent_Impl::SIGFPEfunc" );
return c ;
void SIGNALSComponent_Impl::MethodToKill() {
beginService( " SIGNALSComponent_Impl::MethodToKill" );
while ( 1 ) {
- sleep(1) ;
+#ifndef WIN32
+ sleep(1);
+#else
+ Sleep(1000);
+#endif
+
}
endService( " SIGNALSComponent_Impl::MethodToKill" );
return ;
#ifndef _SIGNALSCOMPONENT_IMPL_HXX_
#define _SIGNALSCOMPONENT_IMPL_HXX_
-//#include <iostream.h>
+#include "SIGNALSComponent_defines.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SIGNALSComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class SIGNALSComponent_Impl : public POA_SuperVisionTest::SIGNALSComponent ,
- public Engines_Component_i {
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponent_Impl : public POA_SuperVisionTest::SIGNALSComponent ,
+ public Engines_Component_i {
public:
SIGNALSComponent_Impl() ;
SIGNALSComponent_Impl( CORBA::ORB_ptr orb,
};
extern "C"
+ SIGNALSCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SIGNALSComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
--- /dev/null
+// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// File : SIGNALSComponent_defines.hxx
+// Author : Roman NIKOLAEV, OPEN CASCADE
+// $Header$
+//
+#ifndef _SIGNALSCOMPONENT_DEFINES_HXX_
+#define _SIGNALSCOMPONENT_DEFINES_HXX_
+
+#ifdef WIN32
+# if defined SIGNALSCOMPONENTENGINE_EXPORTS || defined SIGNALSComponentEngine_EXPORTS
+# define SIGNALSCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define SIGNALSCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define SIGNALSCOMPONENTENGINE_EXPORT
+#endif
+
+#endif //_SIGNALSCOMPONENT_DEFINES_HXX_
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "Sub is Computing");
// S = 1+(int) (15.0*rand()/(RAND_MAX+1.0));
S = 5 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( "SubComponentEngine::Sub( " << x << " , " << y << " , " << z
<< " ) after " << S << " seconds" )
endService( " SubComponentEngine::Sub" );
#ifndef _SUBCOMPONENTENGINE_HXX_
#define _SUBCOMPONENTENGINE_HXX_
+#ifdef WIN32
+# if defined SUBCOMPONENTENGINE_EXPORTS || defined SubComponentEngine_EXPORTS
+# define SUBCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define SUBCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define SUBCOMPONENTENGINE_EXPORT
+#endif
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SubComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class SubComponentEngine : public POA_SuperVisionTest::SubComponent ,
- public Engines_Component_i {
+class SUBCOMPONENTENGINE_EXPORT SubComponentEngine : public POA_SuperVisionTest::SubComponent ,
+ public Engines_Component_i {
public:
SubComponentEngine() ;
SubComponentEngine( CORBA::ORB_ptr orb,
};
extern "C"
+ SUBCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SubComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <iostream>
#include <fstream>
#include <strstream>
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <process.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_ISEVEN is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
RetVal = ( anInteger & 1 ) == 0 ;
endService( " SyrComponent_Impl::C_ISEVEN" );
return RetVal ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_ISONE is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
RetVal = ( anOddInteger == 1 ) ;
endService( " SyrComponent_Impl::C_ISONE" );
return RetVal ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_M3 is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
- endService( " SyrComponent_Impl::C_M3" );
+#else
+ Sleep(S*1000);
+#endif endService( " SyrComponent_Impl::C_M3" );
if ( C_ISEVEN( anOddInteger ) )
return 0 ;
return ( 3*anOddInteger ) ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_M3P1 is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " SyrComponent_Impl::C_M3P1" );
if ( C_ISEVEN( anOddInteger ) )
return 0 ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_DIV2 is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " SyrComponent_Impl::C_DIV2" );
if ( !C_ISEVEN( anEvenInteger ) )
return 0 ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_INCR is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " SyrComponent_Impl::C_INCR" );
return ( aCount + 1 ) ;
}
sendMessage(NOTIF_STEP, "SyrComponent_Impl::CPP_SETLONG is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
_Count = aCount ;
endService( " SyrComponent_Impl::CPP_SETLONG" );
return ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::CPP_ADDTOLONG is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " SyrComponent_Impl::CPP_ADDTOLONG" );
return ( _Count + anIncr ) ;
}
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_MIN is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
int min = aMinVal ;
if ( anInteger < min || aMinVal == 0 ) {
min = anInteger ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_MAX is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
int max = aMaxVal ;
if ( anInteger > max ) {
max = anInteger ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_LISTOFSYR is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
ListOfSyr_Impl * aNewListOfSyr = new ListOfSyr_Impl( _orb , _poa, _contId,
instanceName() , interfaceName() ,
graphName() , nodeName() ) ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl::C_AVERAGE is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
SuperVisionTest::SeqOfSyr * aSeqOfSyr = aListOfSyr->GetSeqOfSyr() ;
int len = aSeqOfSyr->length() ;
aSeqOfSyr->length( len + 1 ) ;
sendMessage(NOTIF_STEP, "SyrComponent_Impl creates Syr_Impl");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
Syr_Impl * mySyr ;
mySyr = new Syr_Impl( _orb , _poa, _contId,
instanceName() , interfaceName() ,
const char *instanceName,
const char *interfaceName)
{
+#ifndef WIN32
MESSAGE("SyrComponentEngine_factory SyrComponentEngine ("
<< instanceName << "," << interfaceName << "," << getpid() << ")");
+#else
+ MESSAGE("SyrComponentEngine_factory SyrComponentEngine ("
+ << instanceName << "," << interfaceName << "," << _getpid() << ")");
+#endif
SyrComponent_Impl * mySyrComponent
= new SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName);
return mySyrComponent->getId() ;
sendMessage(NOTIF_STEP, "Syr_Impl::Initial is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " Syr_Impl::Initial" );
return _InitialInteger ;
}
sendMessage(NOTIF_STEP, "Syr_Impl::Current is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
endService( " Syr_Impl::Current" );
return _CurrentInteger ;
}
sendMessage(NOTIF_STEP, "Syr_Impl::IsEven is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
RetVal = ( _CurrentInteger & 1 ) == 0 ;
MESSAGE( " Syr_Impl::IsEven " << _CurrentInteger << " " << RetVal );
endService( " Syr_Impl::IsEven" );
sendMessage(NOTIF_STEP, "Syr_Impl::IsOne is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
RetVal = ( _CurrentInteger == 1 ) ;
MESSAGE( " Syr_Impl::IsOne " << _CurrentInteger << " " << RetVal );
endService( " Syr_Impl::IsOne" );
sendMessage(NOTIF_STEP, "Syr_Impl::Count is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
MESSAGE( " Syr_Impl::Count " << _Count );
endService( " Syr_Impl::Count" );
return _Count ;
sendMessage(NOTIF_STEP, "Syr_Impl::M3p1 is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
if ( IsEven() )
_CurrentInteger = 0 ;
else
sendMessage(NOTIF_STEP, "Syr_Impl::Div2 is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
if ( !IsEven() )
_CurrentInteger = 0 ;
else
sendMessage(NOTIF_STEP, "Syr_Impl::Incr is Computing");
// int S = 1+(int) (2.0*rand()/(RAND_MAX+1.0));
int S = 1 ;
+#ifndef WIN32
while ( S ) {
- S = sleep(S);
+ S = sleep( S ) ;
}
+#else
+ Sleep(S*1000);
+#endif
_Count = _Count + 1 ;
MESSAGE( " Syr_Impl::Incr " << _Count );
endService( " Syr_Impl::Incr" );
#ifndef _SYRCOMPONENT_IMPL_HXX_
#define _SYRCOMPONENT_IMPL_HXX_
+#ifdef WIN32
+# if defined SYRCOMPONENTENGINE_EXPORTS || defined SyrComponentEngine_EXPORTS
+# define SYRCOMPONENTENGINE_EXPORT __declspec( dllexport )
+# else
+# define SYRCOMPONENTENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define SYRCOMPONENTENGINE_EXPORT
+#endif
+
//#include <iostream.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SyrComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
#include "SALOME_Component_i.hxx"
-class SyrComponent_Impl : public POA_SuperVisionTest::SyrComponent ,
- public Engines_Component_i {
+class SYRCOMPONENTENGINE_EXPORT SyrComponent_Impl : public POA_SuperVisionTest::SyrComponent,
+ public Engines_Component_i {
public:
SyrComponent_Impl() ;
SyrComponent_Impl( CORBA::ORB_ptr orb ,
long _Count ;
};
-class ListOfSyr_Impl : public POA_SuperVisionTest::ListOfSyr ,
- public Engines_Component_i {
+class SYRCOMPONENTENGINE_EXPORT ListOfSyr_Impl : public POA_SuperVisionTest::ListOfSyr ,
+ public Engines_Component_i {
public:
ListOfSyr_Impl( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
};
extern "C"
+ SYRCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SyrComponentEngine_factory
( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
const char *instanceName ,
const char *interfaceName ) ;
-class Syr_Impl : public POA_SuperVisionTest::Syr ,
- public SyrComponent_Impl {
+class SYRCOMPONENTENGINE_EXPORT Syr_Impl : public POA_SuperVisionTest::SyrComponent ,
+ public SyrComponent_Impl {
public:
Syr_Impl() ;
Syr_Impl( CORBA::ORB_ptr orb ,
// $Header:
//
#include <iostream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <iostream>
#include <fstream>
#include <sstream>
#ifndef _DYNINVOKE_
#define _DYNINVOKE_
+#ifdef WIN32
+# if defined DYNINVOKE_EXPORTS || defined DynInvoke_EXPORTS
+# define DYNINVOKE_EXPORT __declspec( dllexport )
+# else
+# define DYNINVOKE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define DYNINVOKE_EXPORT
+#endif
+
struct ServicesAnyData {
std::string Name;
// dynamic call for function with list of in parameters, followed
// by out parameters with no return value
-void DynInvoke(Engines::EngineComponent_ptr obj,
- const char *method,
- ServicesAnyData * inParams, int nInParams,
- ServicesAnyData * outParams, int nOutParams);
+void DYNINVOKE_EXPORT DynInvoke(Engines::EngineComponent_ptr obj,
+ const char *method,
+ ServicesAnyData * inParams, int nInParams,
+ ServicesAnyData * outParams, int nOutParams);
#endif
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(AddComponent)
//
#include <iostream>
#include <fstream>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include "TypesCheck_Impl.hxx"
// Module : SuperVisionTest
//
#include <stdio.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <process.h>
+#endif
#include <fstream>
#include <sstream>
#include <string>
PortableServer::ObjectId * contId ,
const char *instanceName ,
const char *interfaceName ) {
+#ifndef WIN32
MESSAGE("TypesCheckEngine_factory TypesCheckEngine ("
- << instanceName << "," << interfaceName << "," << getpid() << ")");
+ << instanceName << "," << interfaceName << "," << getpid()<< ")");
+#else
+ MESSAGE("TypesCheckEngine_factory TypesCheckEngine ("
+ << instanceName << "," << interfaceName << "," << _getpid()<< ")");
+#endif
+
TypesCheck_Impl * myTypesCheck = new TypesCheck_Impl(orb, poa, contId, instanceName, interfaceName);
return myTypesCheck->getId() ;
}
#ifndef _TYPESCHECK_IMPL_HXX_
#define _TYPESCHECK_IMPL_HXX_
+#ifdef WIN32
+# if defined TYPESCHECKENGINE_EXPORTS || defined TypesCheckEngine_EXPORTS
+# define TYPESCHECKENGINE_EXPORT __declspec( dllexport )
+# else
+# define TYPESCHECKENGINE_EXPORT __declspec( dllimport )
+# endif
+#else
+# define TYPESCHECKENGINE_EXPORT
+#endif
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(AddComponent)
#include CORBA_SERVER_HEADER(TypesCheck)
#include "AddComponent_Impl.hxx"
-class TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck ,
- public Engines_Component_i {
+class TYPESCHECKENGINE_EXPORT TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck ,
+ public Engines_Component_i {
public:
TypesCheck_Impl() ;
TypesCheck_Impl( CORBA::ORB_ptr orb ,
};
extern "C"
+ TYPESCHECKENGINE_EXPORT
PortableServer::ObjectId * TypesCheckEngine_factory ( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
PortableServer::ObjectId * contId ,