#include "AddComponent_Impl.hxx"
#include "Adder_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
AddComponent_Impl::~AddComponent_Impl() {
}
+char* AddComponent_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
CORBA::Double AddComponent_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) {
beginService( " AddComponent_Impl::Add" );
z = x + y ;
virtual ~AddComponent_Impl();
+ virtual char* getVersion();
+
virtual CORBA::Double Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
virtual CORBA::Double AddWithoutSleep( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
#include "SALOME_LifeCycleCORBA.hxx"
#include "Adder_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
endService( "Adder_Impl::~Adder_Impl" );
}
+char* Adder_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void Adder_Impl::destroy() {
_poa->deactivate_object(*_id) ;
CORBA::release(_poa) ;
virtual ~Adder_Impl();
+ virtual char* getVersion();
+
virtual void destroy() ;
virtual CORBA::Double Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
+
libAddComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
$(KERNEL_LDFLAGS) \
#include "AdditionComponent_Impl.hxx"
#include "Adder_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
AdditionInterface_Impl::~AdditionInterface_Impl() {
}
+char* AdditionInterface_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
CORBA::Double AdditionInterface_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) {
beginService( " AdditionInterface_Impl::Add" );
z = x + y ;
virtual ~AdditionInterface_Impl();
+ virtual char* getVersion();
+
virtual CORBA::Double Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
virtual CORBA::Double AddWithoutSleep( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
#include "SALOME_LifeCycleCORBA.hxx"
#include "Addition_Adder_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
LastAddition = 0 ;
}
+char* Adder_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
Adder_Impl::~Adder_Impl() {
beginService( "Adder_Impl::~Adder_Impl" );
endService( "Adder_Impl::~Adder_Impl" );
virtual ~Adder_Impl();
+ virtual char* getVersion();
+
virtual void destroy() ;
virtual CORBA::Double Add( CORBA::Double x , CORBA::Double y , CORBA::Double & z ) ;
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
-I$(srcdir)/../AddComponent \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libAdditionComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
#include <iostream>
#include <sstream>
+#include "COMPONENT_version.h"
#include "CalculatorEngine.hxx"
#include "MEDMEM_Support_i.hxx"
#include "SUPPORTClient.hxx"
delete _NS;
}
+char* CalculatorEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
static omni_mutex aPutToStudyMutex;
SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::PutToStudy(SALOME_MED::FIELDDOUBLE_ptr theField1,
CORBA::Long theStudyId) {
virtual ~CalculatorEngine();
+ virtual char* getVersion();
SALOME_MED::FIELDDOUBLE_ptr PutToStudy(SALOME_MED::FIELDDOUBLE_ptr theField,
CORBA::Long theStudyId);
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
$(MED_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libCalculatorEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
#include <sstream>
#include <string>
+#include "COMPONENT_version.h"
#include "DataStreamComponent_Impl.hxx"
using namespace std;
DataStreamFactory_Impl::~DataStreamFactory_Impl() {
}
+char* DataStreamFactory_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void DataStreamFactory_Impl::Setxy( CORBA::Long x , CORBA::Long y ) {
_x = x ;
_y = y ;
endService( "DataStream_Impl::~DataStream_Impl" );
}
+char* DataStream_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void DataStream_Impl::StreamSetxy( CORBA::Long x , CORBA::Long y ) {
_x = x ;
_y = y ;
virtual ~DataStreamFactory_Impl();
+ virtual char* getVersion();
+
virtual void Setxy( CORBA::Long x , CORBA::Long y ) ;
virtual void Getxy( CORBA::Long & x , CORBA::Long & y ) ;
virtual ~DataStream_Impl();
+ virtual char* getVersion();
+
virtual void StreamSetxy( CORBA::Long x , CORBA::Long y ) ;
virtual void StreamGetxy( CORBA::Long & x , CORBA::Long & y ) ;
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
-I$(srcdir)/../AddComponent \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libDataStreamFactoryEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
//#include "utilities.h"
#include "DivComponent.hxx"
+#include "COMPONENT_version.h"
using namespace std;
{
}
+char* DivComponentEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void DivComponentEngine::Div( double x , double y , double & z ) {
beginService( " DivComponentEngine::Div" );
z = x / y ;
virtual ~DivComponentEngine();
+ virtual char* getVersion();
+
void Div( double x , double y , double & z ) ;
private:
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libDivComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
self.endService( 'FactorialComponent sigma' )
return s
+ def getVersion( self ):
+ import salome_version
+ return salome_version.getVersion("COMPONENT", True)
+
def __init__(self, orb, poa, this, containerName, instanceName, interfaceName):
SALOME_ComponentPy_i.__init__(self, orb, poa, this, containerName,
instanceName, interfaceName, 0)
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libMulComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
//#include "utilities.h"
#include "MulComponent.hxx"
+#include "COMPONENT_version.h"
using namespace std;
{
}
+char* MulComponentEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void MulComponentEngine::Mul( double x , double y , double & z ) {
beginService( " MulComponentEngine::Mul" );
z = x * y ;
virtual ~MulComponentEngine();
+ virtual char* getVersion();
+
void Mul( double x , double y , double & z ) ;
private:
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libSIGNALSComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
//#include "utilities.h"
#include "SIGNALSComponent_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
{
}
+char* SIGNALSComponent_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
CORBA::Long SIGNALSComponent_Impl::SIGSEGVfunc() {
beginService( " SIGNALSComponent_Impl::SIGSEGVfunc" );
cout << pthread_self() << "SIGNALSComponent_Impl::SIGSEGVfunc" << endl ;
virtual ~SIGNALSComponent_Impl();
+ virtual char* getVersion();
+
CORBA::Long SIGSEGVfunc() ;
CORBA::Long SIGFPEfunc( CORBA::Long a , CORBA::Long b ) ;
void MethodToKill() ;
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libSubComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
#include <sstream>
#include <string>
-//#include "utilities.h"
+#include "COMPONENT_version.h"
#include "SubComponent.hxx"
using namespace std;
{
}
+char* SubComponentEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void SubComponentEngine::Sub( double x , double y , double & z ) {
beginService( " SubComponentEngine::Sub" );
z = x - y ;
#ifndef _SUBCOMPONENTENGINE_HXX_
#define _SUBCOMPONENTENGINE_HXX_
-//#include <iostream.h>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SubComponent)
#include CORBA_SERVER_HEADER(SALOME_Component)
virtual ~SubComponentEngine();
+ virtual char* getVersion();
+
void Sub( double x , double y , double & z ) ;
private:
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
-I$(srcdir)/../AddComponent \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
+
libSyrComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
$(KERNEL_LDFLAGS) \
#include <sstream>
#include <string>
-//#include "utilities.h"
-
+#include "COMPONENT_version.h"
#include "SyrComponent_Impl.hxx"
#include "Adder_Impl.hxx"
SyrComponent_Impl::~SyrComponent_Impl() {
}
+char* SyrComponent_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
CORBA::Long SyrComponent_Impl::C_ISEVEN( CORBA::Long anInteger ) {
bool RetVal ;
beginService( " SyrComponent_Impl::C_ISEVEN" );
endService( "ListOfSyr_Impl::~ListOfSyr_Impl" );
}
+char* ListOfSyr_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
SuperVisionTest::SeqOfSyr * ListOfSyr_Impl::GetSeqOfSyr() {
SuperVisionTest::SeqOfSyr_var aSeqOfSyr = new SuperVisionTest::SeqOfSyr( _SeqOfSyr ) ;
return ( aSeqOfSyr._retn() ) ;
virtual ~SyrComponent_Impl();
+ virtual char* getVersion();
+
virtual CORBA::Long C_ISEVEN( CORBA::Long anInteger ) ;
virtual CORBA::Long C_ISONE( CORBA::Long anOddInteger ) ;
ListOfSyr_Impl() ;
virtual ~ListOfSyr_Impl();
+ virtual char* getVersion();
+
virtual SuperVisionTest::SeqOfSyr * GetSeqOfSyr() ;
virtual void SetSeqOfSyr( const SuperVisionTest::SeqOfSyr & ) ;
self.Syr = lcc.FindOrLoadComponent( 'FactoryServer' , 'SyrComponent' )
print "SyrControlComponent::__init__",dir(self.Syr)
+ def getVersion( self ):
+ import salome_version
+ return salome_version.getVersion("COMPONENT", True)
+
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
-I$(srcdir)/../AddComponent \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
+
libTypesCheckEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
$(KERNEL_LDFLAGS) \
#include <string>
#include "TypesCheck_Impl.hxx"
+#include "COMPONENT_version.h"
using namespace std;
endService( "TypesCheck_Impl::~TypesCheck_Impl" );
}
+char* TypesCheck_Impl::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
void TypesCheck_Impl::StringCheck( const char * InString , _CORBA_String_out OutString ) {
beginService( "TypesCheck_Impl::StringCheck" );
OutString = CORBA::string_dup( InString ) ;
virtual ~TypesCheck_Impl();
+ virtual char* getVersion();
+
virtual void StringCheck( const char * InString , _CORBA_String_out OutString ) ;
virtual void BoolCheck( CORBA::Boolean InBool , CORBA::Boolean & OutBool ) ;
$(CORBA_CXXFLAGS) \
$(CORBA_INCLUDES) \
$(KERNEL_CXXFLAGS) \
- -I$(top_builddir)/idl
+ -I$(top_builddir)/idl \
+ -I$(top_builddir)
libUndefinedSymbolComponentEngine_la_LDFLAGS = \
../../idl/libSalomeIDLCOMPONENT.la \
//#include "utilities.h"
#include "UndefinedSymbolComponent.hxx"
+#include "COMPONENT_version.h"
using namespace std;
{
}
+char* UndefinedSymbolComponentEngine::getVersion()
+{
+#if COMPONENT_DEVELOPMENT
+ return CORBA::string_dup(COMPONENT_VERSION_STR"dev");
+#else
+ return CORBA::string_dup(COMPONENT_VERSION_STR);
+#endif
+}
+
extern "C" { long CallUndefined() ; } ;
CORBA::Long UndefinedSymbolComponentEngine::UndefinedSymbol() {
virtual ~UndefinedSymbolComponentEngine();
+ virtual char* getVersion();
+
CORBA::Long UndefinedSymbol() ;
private: