MESSAGE(STATUS "Found Salome MED: ${MED_ROOT_DIR}")
ENDIF()
+FIND_LIBRARY(medcouplingcorba medcouplingcorba ${MED_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(medcouplingclient medcouplingclient ${MED_ROOT_DIR}/lib/salome)
+FIND_LIBRARY(SalomeIDLMED SalomeIDLMED ${MED_ROOT_DIR}/lib/salome)
+
FOREACH(_res ${SalomeMED_EXTRA_ENV})
SALOME_ACCUMULATE_ENVIRONMENT(${_res} "${SalomeMED_EXTRA_ENV_${_res}}")
ENDFOREACH()
\ No newline at end of file
SET(COMMON_LIBS
${PLATFORM_LIBRARIES}
SalomeIDLMED
- ${KERNEL_TOOLSDS} ${KERNEL_SalomeHDFPersist} ${KERNEL_SalomeContainer} ${KERNEL_SalomeCommunication}
+ ${KERNEL_TOOLSDS} ${KERNEL_SalomeDS} ${KERNEL_SalomeHDFPersist} ${KERNEL_SalomeContainer} ${KERNEL_SalomeCommunication}
${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
- ${KERNEL_SalomeGenericObj}
+ ${KERNEL_SalomeGenericObj} ${GUI_PyInterp}
${MEDFILE_C_LIBRARIES}
${HDF5_LIBRARIES}
${OMNIORB_LIBRARIES}
#define __MEDCALC_HXX__
#ifdef WIN32
-# if defined medcalc_EXPORTS || defined MEDFactoryEngine_EXPORTS || defined MEDFACTORYENGINE_EXPORTS
+# if defined MEDFactoryEngine_EXPORTS || defined MEDEngine_EXPORTS
# define MEDCALC_EXPORT __declspec( dllexport )
# else
# define MEDCALC_EXPORT __declspec( dllimport )
#include "MEDDataManager_i.hxx"
#include "MEDCALC.hxx"
-class MEDCALC_EXPORT MEDCalculator_i: public POA_MEDCALC::MEDCalculator,
+class MEDCalculator_i: public POA_MEDCALC::MEDCalculator,
public SALOME::GenericObj_i
{
public:
// Functions specified in the IDL interface
// ===========================================================
//
- MEDCALC::FieldHandler * add(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
- MEDCALC::FieldHandler * sub(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
- MEDCALC::FieldHandler * mul(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
- MEDCALC::FieldHandler * div(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
- MEDCALC::FieldHandler * pow(const MEDCALC::FieldHandler & f_hdl, CORBA::Long power);
- MEDCALC::FieldHandler * lin(const MEDCALC::FieldHandler & f_hdl, double factor, double offset);
- MEDCALC::FieldHandler * dup(const MEDCALC::FieldHandler & f_hdl);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * add(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * sub(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * mul(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * div(const MEDCALC::FieldHandler & f1_hdl, const MEDCALC::FieldHandler & f2_hdl);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * pow(const MEDCALC::FieldHandler & f_hdl, CORBA::Long power);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * lin(const MEDCALC::FieldHandler & f_hdl, double factor, double offset);
+ MEDCALC_EXPORT MEDCALC::FieldHandler * dup(const MEDCALC::FieldHandler & f_hdl);
- MEDCALC::FieldHandler * fct(const MEDCALC::FieldHandler & f_hdl,
+ MEDCALC_EXPORT MEDCALC::FieldHandler * fct(const MEDCALC::FieldHandler & f_hdl,
const char * function, CORBA::Long nbResComponents);
//
#include "MEDCALC.hxx"
-class MEDCALC_EXPORT MEDCommandsHistoryManager_i
+class MEDCommandsHistoryManager_i
: public POA_MEDCALC::MEDCommandsHistoryManager,
public SALOME::GenericObj_i
{
public:
static MEDCommandsHistoryManager_i* getInstance();
- void addCommand(const char* command);
- MEDCALC::CommandsList* getCommandsHistory();
- void clearHistory();
+ MEDCALC_EXPORT void addCommand(const char* command);
+ MEDCALC_EXPORT MEDCALC::CommandsList* getCommandsHistory();
+ MEDCALC_EXPORT void clearHistory();
private:
MEDCommandsHistoryManager_i();
typedef map<long,MEDCouplingUMesh*>::iterator MeshMapIterator;
#include "MEDCALC.hxx"
-class MEDCALC_EXPORT MEDDataManager_i: public POA_MEDCALC::MEDDataManager,
+class MEDDataManager_i: public POA_MEDCALC::MEDDataManager,
public SALOME::GenericObj_i
{
public:
//
// -----------------------------------------------------------
// Datasource management
- MEDCALC::DatasourceHandler * loadDatasource(const char *filepath);
- MEDCALC::DatasourceHandler * getDatasourceHandler(const char *filepath);
- MEDCALC::DatasourceHandler * getDatasourceHandlerFromID(CORBA::Long sourceId);
+ MEDCALC_EXPORT MEDCALC::DatasourceHandler * loadDatasource(const char *filepath);
+ MEDCALC_EXPORT MEDCALC::DatasourceHandler * getDatasourceHandler(const char *filepath);
+ MEDCALC_EXPORT MEDCALC::DatasourceHandler * getDatasourceHandlerFromID(CORBA::Long sourceId);
// -----------------------------------------------------------
// Mesh management
- MEDCALC::MeshHandlerList * getMeshList(CORBA::Long datasourceId);
- MEDCALC::MeshHandler * getMesh(CORBA::Long meshId);
+ MEDCALC_EXPORT MEDCALC::MeshHandlerList * getMeshList(CORBA::Long datasourceId);
+ MEDCALC_EXPORT MEDCALC::MeshHandler * getMesh(CORBA::Long meshId);
// -----------------------------------------------------------
// Field management
- MEDCALC::FieldseriesHandlerList * getFieldseriesListOnMesh(CORBA::Long meshId);
- MEDCALC::FieldHandlerList * getFieldListInFieldseries(CORBA::Long fieldseriesId);
+ MEDCALC_EXPORT MEDCALC::FieldseriesHandlerList * getFieldseriesListOnMesh(CORBA::Long meshId);
+ MEDCALC_EXPORT MEDCALC::FieldHandlerList * getFieldListInFieldseries(CORBA::Long fieldseriesId);
- MEDCALC::FieldHandler * getFieldHandler(CORBA::Long fieldHandlerId);
- char * getFieldRepresentation(CORBA::Long fieldHandlerId);
- MEDCALC::FieldHandlerList * getFieldHandlerList();
+ MEDCALC_EXPORT MEDCALC::FieldHandler * getFieldHandler(CORBA::Long fieldHandlerId);
+ MEDCALC_EXPORT char * getFieldRepresentation(CORBA::Long fieldHandlerId);
+ MEDCALC_EXPORT MEDCALC::FieldHandlerList * getFieldHandlerList();
- void saveFields(const char * filepath,
+ MEDCALC_EXPORT void saveFields(const char * filepath,
const MEDCALC::FieldIdList & fieldIdList);
- void markAsPersistent(CORBA::Long fieldHandlerId, bool persistent);
- void savePersistentFields(const char * filepath);
+ MEDCALC_EXPORT void markAsPersistent(CORBA::Long fieldHandlerId, bool persistent);
+ MEDCALC_EXPORT void savePersistentFields(const char * filepath);
- void updateFieldMetadata(CORBA::Long fieldHandlerId,
+ MEDCALC_EXPORT void updateFieldMetadata(CORBA::Long fieldHandlerId,
const char * fieldname,
CORBA::Long iteration,
CORBA::Long order,
const char * source);
- void changeUnderlyingMesh(CORBA::Long fieldHandlerId, CORBA::Long meshHandlerId);
- MEDCALC::FieldHandler* interpolateField(CORBA::Long fieldHandlerId, CORBA::Long meshHandlerId, const MEDCALC::InterpolationParameters& params);
+ MEDCALC_EXPORT void changeUnderlyingMesh(CORBA::Long fieldHandlerId, CORBA::Long meshHandlerId);
+ MEDCALC_EXPORT MEDCALC::FieldHandler* interpolateField(CORBA::Long fieldHandlerId, CORBA::Long meshHandlerId, const MEDCALC::InterpolationParameters& params);
- void setEventListenerIOR(const char * ior);
- char * getEventListenerIOR();
+ MEDCALC_EXPORT void setEventListenerIOR(const char * ior);
+ MEDCALC_EXPORT char * getEventListenerIOR();
- void serverlog();
+ MEDCALC_EXPORT void serverlog();
//
// ===========================================================
class MEDPresentation;
-class MEDCALC_EXPORT MEDPresentationManager_i: public POA_MEDCALC::MEDPresentationManager,
+class MEDPresentationManager_i: public POA_MEDCALC::MEDPresentationManager,
public SALOME::GenericObj_i
{
public:
static MEDPresentationManager_i* getInstance();
- TypeID makeScalarMap(const MEDCALC::ScalarMapParameters&);
- void setPresentationProperty(TypeID presentationID, const char * propName, const char * propValue);
- char* getPresentationProperty(TypeID presentationID, const char* propName);
+ MEDCALC_EXPORT TypeID makeScalarMap(const MEDCALC::ScalarMapParameters&);
+ MEDCALC_EXPORT void setPresentationProperty(TypeID presentationID, const char * propName, const char * propValue);
+ MEDCALC_EXPORT char* getPresentationProperty(TypeID presentationID, const char* propName);
private:
MEDPresentationManager_i();