#ifndef _BASICGENERICDESTRUCTOR_HXX_
#define _BASICGENERICDESTRUCTOR_HXX_
+#ifdef WNT
+ #if defined BASICS_EXPORTS
+ #if defined WIN32
+ #define BASICS_EXPORT __declspec( dllexport )
+ #else
+ #define BASICS_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define BASICS_EXPORT __declspec( dllimport )
+ #else
+ #define BASICS_EXPORT
+ #endif
+ #endif
+#else
+ #define BASICS_EXPORT
+#endif
+
#include <list>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <pthread.h>
-#if defined BASICS_EXPORTS
-#if defined WIN32
-#define BASICS_EXPORT __declspec( dllexport )
-#else
-#define BASICS_EXPORT
-#endif
-#else
-#if defined WNT
-#define BASICS_EXPORT __declspec( dllimport )
-#else
-#define BASICS_EXPORT
-#endif
-#endif
-
//#define _DEVDEBUG_
#ifdef _DEVDEBUG_
*/
// ============================================================================
-class PROTECTED_DELETE
+class BASICS_EXPORT PROTECTED_DELETE
{
public:
- BASICS_EXPORT static void deleteInstance(PROTECTED_DELETE *anObject);
- BASICS_EXPORT static void addObj(PROTECTED_DELETE *anObject);
+ static void deleteInstance(PROTECTED_DELETE *anObject);
+ static void addObj(PROTECTED_DELETE *anObject);
protected:
- BASICS_EXPORT virtual ~PROTECTED_DELETE();
+ virtual ~PROTECTED_DELETE();
static std::list<PROTECTED_DELETE*> _objList;
private:
*/
// ============================================================================
-class GENERIC_DESTRUCTOR
+class BASICS_EXPORT GENERIC_DESTRUCTOR
{
public :
- BASICS_EXPORT static std::list<GENERIC_DESTRUCTOR*> *Destructors;
+ static std::list<GENERIC_DESTRUCTOR*> *Destructors;
virtual ~GENERIC_DESTRUCTOR() {};
- BASICS_EXPORT static const int Add(GENERIC_DESTRUCTOR &anObject);
- BASICS_EXPORT virtual void operator()(void) = 0;
+ static const int Add(GENERIC_DESTRUCTOR &anObject);
+ virtual void operator()(void) = 0;
};
// ============================================================================
#ifndef _MULTICOMMEXCEPTION_HXX_
#define _MULTICOMMEXCEPTION_HXX_
-#include <string>
+#include <SALOME_Communication.hxx>
+#include <string>
-class MultiCommException {
+class COMMUNICATION_EXPORT MultiCommException {
private:
std::string _message;
public:
#ifndef _RECEIVERFACTORY_HXX_
#define _RECEIVERFACTORY_HXX_
+#include <SALOME_Communication.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Comm)
#include "MultiCommException.hxx"
This class internally builds a receiver associated with the sender given. It also performs transfert completely and clean up the objects.
This is the only class used client side of an array.
*/
-class ReceiverFactory
+class COMMUNICATION_EXPORT ReceiverFactory
{
public:
static double *getValue(SALOME::SenderDouble_ptr sender,long &size)throw(MultiCommException);
#ifndef _SALOMEMULTICOMM_HXX_
#define _SALOMEMULTICOMM_HXX_
+#include <SALOME_Communication.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Comm)
Class is designed to ease the use of multi communication.\n
Simply inherite from it your servant class you want to emit data with senders.
*/
-class SALOMEMultiComm : public virtual POA_SALOME::MultiCommClass {
+class COMMUNICATION_EXPORT SALOMEMultiComm : public virtual POA_SALOME::MultiCommClass {
protected:
SALOME::TypeOfCommunication _type;
public:
#ifndef _SALOME_COMM_I_HXX_
#define _SALOME_COMM_I_HXX_
+#include <SALOME_Communication.hxx>
+
#ifdef HAVE_MPI2
#include "mpi.h"
#endif
Generic servant class for senders that factorizes all the common methods and attributes necessary to senders.
All servant classes for senders have to inheritate from it.
*/
-class SALOME_Sender_i : public virtual POA_SALOME::Sender,
+class COMMUNICATION_EXPORT SALOME_Sender_i : public virtual POA_SALOME::Sender,
public PortableServer::RefCountServantBase {
protected:
/*! Pointer to the generic array to transmit*/
virtual ~SALOME_Sender_i() {}
};
-class SALOME_SenderDouble_i : public virtual POA_SALOME::SenderDouble,
+class COMMUNICATION_EXPORT SALOME_SenderDouble_i : public virtual POA_SALOME::SenderDouble,
public virtual SALOME_Sender_i
{
public:
static SALOME_SenderDouble_i *find(SALOME::SenderDouble_ptr pCorba);
};
-class SALOME_SenderInt_i : public virtual POA_SALOME::SenderInt,
+class COMMUNICATION_EXPORT SALOME_SenderInt_i : public virtual POA_SALOME::SenderInt,
public virtual SALOME_Sender_i
{
public:
/*! Servant class for CORBA sender for double* when no copy of array _tabToSend is required, that is to say double and CORBA::Double are binary equal.
*/
-class SALOME_CorbaDoubleNCSender_i : public POA_SALOME::CorbaDoubleNCSender,
+class COMMUNICATION_EXPORT SALOME_CorbaDoubleNCSender_i : public POA_SALOME::CorbaDoubleNCSender,
public SALOME_SenderDouble_i
{
public:
/*! Servant class for CORBA sender for double* when copy of array _tabToSend is required, that is to say double and CORBA::Double are NOT binary equal.
*/
-class SALOME_CorbaDoubleCSender_i : public POA_SALOME::CorbaDoubleCSender,
+class COMMUNICATION_EXPORT SALOME_CorbaDoubleCSender_i : public POA_SALOME::CorbaDoubleCSender,
public SALOME_SenderDouble_i
{
public:
/*! Servant class for CORBA sender for int* when no copy of array _tabToSend is required, that is to say int and CORBA::Long are binary equal.
*/
-class SALOME_CorbaLongNCSender_i : public POA_SALOME::CorbaLongNCSender,
+class COMMUNICATION_EXPORT SALOME_CorbaLongNCSender_i : public POA_SALOME::CorbaLongNCSender,
public SALOME_SenderInt_i
{
public:
/*! Servant class for CORBA sender for int* when copy of array _tabToSend is required, that is to say int and CORBA::Long are NOT binary equal.
*/
-class SALOME_CorbaLongCSender_i : public POA_SALOME::CorbaLongCSender,
+class COMMUNICATION_EXPORT SALOME_CorbaLongCSender_i : public POA_SALOME::CorbaLongCSender,
public SALOME_SenderInt_i
{
public:
/*! Servant class of sender using MPI2.
*/
-class SALOME_MPISender_i : public virtual POA_SALOME::MPISender,
+class COMMUNICATION_EXPORT SALOME_MPISender_i : public virtual POA_SALOME::MPISender,
public virtual SALOME_Sender_i
{
private:
static void* myThread(void *args);
};
-class SALOME_MPISenderDouble_i : public POA_SALOME::MPISenderDouble,
+class COMMUNICATION_EXPORT SALOME_MPISenderDouble_i : public POA_SALOME::MPISenderDouble,
public SALOME_SenderDouble_i,
public SALOME_MPISender_i
{
SALOME_MPISenderDouble_i(const double *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
};
-class SALOME_MPISenderInt_i : public POA_SALOME::MPISenderInt,
+class COMMUNICATION_EXPORT SALOME_MPISenderInt_i : public POA_SALOME::MPISenderInt,
public SALOME_SenderInt_i,
public SALOME_MPISender_i
{
/*! Servant class of sender using Sockets.
*/
-class SALOME_SocketSender_i : public virtual POA_SALOME::SocketSender,
+class COMMUNICATION_EXPORT SALOME_SocketSender_i : public virtual POA_SALOME::SocketSender,
public virtual SALOME_Sender_i
{
private:
std::string inetAddress();
};
-class SALOME_SocketSenderDouble_i : public POA_SALOME::SocketSenderDouble,
+class COMMUNICATION_EXPORT SALOME_SocketSenderDouble_i : public POA_SALOME::SocketSenderDouble,
public SALOME_SenderDouble_i,
public SALOME_SocketSender_i
{
SALOME_SocketSenderDouble_i(const double *tabToSend,long lgrTabToSend,bool ownTabToSend=false);
};
-class SALOME_SocketSenderInt_i : public POA_SALOME::SocketSenderInt,
+class COMMUNICATION_EXPORT SALOME_SocketSenderInt_i : public POA_SALOME::SocketSenderInt,
public SALOME_SenderInt_i,
public SALOME_SocketSender_i
{
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_Communication.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_COMMIUNICATION_HXX_
+#define _SALOME_COMMIUNICATION_HXX_
+
+#ifdef WNT
+ #if defined COMMUNICATION_EXPORTS
+ #if defined WIN32
+ #define COMMUNICATION_EXPORT __declspec( dllexport )
+ #else
+ #define COMMUNICATION_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define COMMUNICATION_EXPORT __declspec( dllimport )
+ #else
+ #define COMMUNICATION_EXPORT
+ #endif
+ #endif
+#else
+ #define COMMUNICATION_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#ifndef _SENDERFACTORY_HXX_
#define _SENDERFACTORY_HXX_
+#include <SALOME_Communication.hxx>
+
#include "MultiCommException.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Comm)
/*!
This class implements the factory pattern of GoF by making a sender by giving an array and a communicator.It completely hides the type of sender from the user.
*/
-class SenderFactory
+class COMMUNICATION_EXPORT SenderFactory
{
public:
static SALOME::SenderDouble_ptr buildSender(SALOMEMultiComm &multiCommunicator,const double *tab,long lgr,bool ownTab=false) throw(MultiCommException);
#ifndef _CONTAINER_INIT_PYTHON_HXX_
#define _CONTAINER_INIT_PYTHON_HXX_
+#include <SALOME_Container.hxx>
+
#include <pthread.h> // must be before Python.h !
#include <Python.h>
// - There is no need of C Lock protection of the sequence.
-#if defined CONTAINER_EXPORTS
-#if defined WIN32
-#define CONTAINER_EXPORT __declspec( dllexport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#else
-#if defined WNT
-#define CONTAINER_EXPORT __declspec( dllimport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#endif
-
#define Py_ACQUIRE_NEW_THREAD \
PyEval_AcquireLock(); \
PyThreadState *myTstate = PyThreadState_New(KERNEL_PYTHON::_interp); \
#ifndef _SALOME_COMPONENT_I_HXX_
#define _SALOME_COMPONENT_I_HXX_
+#include <SALOME_Container.hxx>
+
#include <iostream>
#include <signal.h>
#include <stdlib.h>
class RegistryConnexion;
class Engines_Container_i;
-#if defined CONTAINER_EXPORTS
-#if defined WIN32
-#define CONTAINER_EXPORT __declspec( dllexport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#else
-#if defined WNT
-#define CONTAINER_EXPORT __declspec( dllimport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#endif
-
class CONTAINER_EXPORT Engines_Component_i:
public virtual POA_Engines::Component,
public virtual PortableServer::RefCountServantBase
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_Container.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_Container_HXX_
+#define _SALOME_Container_HXX_
+
+#ifdef WNT
+ #if defined CONTAINER_EXPORTS
+ #if defined WIN32
+ #define CONTAINER_EXPORT __declspec( dllexport )
+ #else
+ #define CONTAINER_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define CONTAINER_EXPORT __declspec( dllimport )
+ #else
+ #define CONTAINER_EXPORT
+ #endif
+ #endif
+#else
+ #define CONTAINER_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#ifndef __SALOME_CONTAINERMANAGER_HXX__
#define __SALOME_CONTAINERMANAGER_HXX__
+#include <SALOME_Container.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(SALOME_Component)
#include CORBA_CLIENT_HEADER(SALOME_ContainerManager)
class SALOME_NamingService;
-#if defined CONTAINER_EXPORTS
-#if defined WIN32
-#define CONTAINER_EXPORT __declspec( dllexport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#else
-#if defined WNT
-#define CONTAINER_EXPORT __declspec( dllimport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#endif
-
class CONTAINER_EXPORT SALOME_ContainerManager:
public POA_Engines::ContainerManager,
public PortableServer::RefCountServantBase
#ifndef _SALOME_CONTAINER_I_HXX_
#define _SALOME_CONTAINER_I_HXX_
+#include <SALOME_Container.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Component)
class SALOME_NamingService;
-
-#if defined CONTAINER_EXPORTS
-#if defined WIN32
-#define CONTAINER_EXPORT __declspec( dllexport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#else
-#if defined WNT
-#define CONTAINER_EXPORT __declspec( dllimport )
-#else
-#define CONTAINER_EXPORT
-#endif
-#endif
-
class CONTAINER_EXPORT Engines_Container_i:
public virtual POA_Engines::Container,
public virtual PortableServer::RefCountServantBase
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_DataTypeCatalog.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_DataTypeCatalog_HXX_
+#define _SALOME_DataTypeCatalog_HXX_
+
+#ifdef WNT
+ #if defined DATATYPECATALOG_EXPORTS
+ #if defined WIN32
+ #define DATATYPECATALOG_EXPORT __declspec( dllexport )
+ #else
+ #define DATATYPECATALOG_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define DATATYPECATALOG_EXPORT __declspec( dllimport )
+ #else
+ #define DATATYPECATALOG_EXPORT
+ #endif
+ #endif
+#else
+ #define DATATYPECATALOG_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#ifndef SALOME_DATA_CATALOG_HANDLER_H
#define SALOME_DATA_CATALOG_HANDLER_H
+#include <SALOME_DataTypeCatalog.hxx>
+
#include "SALOME_DataTypeCatalog_Parser.hxx"
#include <qxml.h>
#include <string>
#include <vector>
-#if defined DATATYPECATALOG_EXPORTS
-#if defined WIN32
-#define DATATYPECATALOG_EXPORT __declspec( dllexport )
-#else
-#define DATATYPECATALOG_EXPORT
-#endif
-#else
-#if defined WNT
-#define DATATYPECATALOG_EXPORT __declspec( dllimport )
-#else
-#define DATATYPECATALOG_EXPORT
-#endif
-#endif
-
class DATATYPECATALOG_EXPORT SALOME_DataTypeCatalog_Handler : public QXmlDefaultHandler
{
public:
#ifndef DATATYPECATALOG_IMPL_H
#define DATATYPECATALOG_IMPL_H
+#include <SALOME_DataTypeCatalog.hxx>
+
#include "utilities.h"
#include "SALOME_DataTypeCatalog_Handler.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_DataTypeCatalog)
-#if defined DATATYPECATALOG_EXPORTS
-#if defined WIN32
-#define DATATYPECATALOG_EXPORT __declspec( dllexport )
-#else
-#define DATATYPECATALOG_EXPORT
-#endif
-#else
-#if defined WNT
-#define DATATYPECATALOG_EXPORT __declspec( dllimport )
-#else
-#define DATATYPECATALOG_EXPORT
-#endif
-#endif
-
class DATATYPECATALOG_EXPORT SALOME_DataTypeCatalogImpl: public POA_SALOME_DataTypeCatalog::DataCatalog,
public PortableServer::RefCountServantBase
{
hdf_byte_order order;
if ((type_id = H5Dget_type(dataset_id)) < 0)
- return -1;
+ return H5T_ORDER_ERROR;
order = H5Tget_order(type_id);
hdf_err
HDFobjectType(hdf_idt id, char *name, hdf_object_type *type)
{
- hdf_object_type rep;
hdf_bool follow = 1;
H5G_stat_t buf;
hdf_err ret;
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_ModuleCatalog.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_ModuleCatalog_HXX_
+#define _SALOME_ModuleCatalog_HXX_
+
+#ifdef WNT
+ #if defined MODULECATALOG_EXPORTS
+ #if defined WIN32
+ #define MODULECATALOG_EXPORT __declspec( dllexport )
+ #else
+ #define MODULECATALOG_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define MODULECATALOG_EXPORT __declspec( dllimport )
+ #else
+ #define MODULECATALOG_EXPORT
+ #endif
+ #endif
+#else
+ #define MODULECATALOG_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#ifndef ACOMPONENT_IMPL_H
#define ACOMPONENT_IMPL_H
+#include <SALOME_ModuleCatalog.hxx>
+
#include "SALOME_ModuleCatalog_Parser.hxx"
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
-#if defined MODULECATALOG_EXPORTS
-#if defined WIN32
-#define MODULECATALOG_EXPORT __declspec( dllexport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#else
-#if defined WNT
-#define MODULECATALOG_EXPORT __declspec( dllimport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#endif
-
class MODULECATALOG_EXPORT SALOME_ModuleCatalog_AcomponentImpl: public POA_SALOME_ModuleCatalog::Acomponent,
public PortableServer::RefCountServantBase
{
#ifndef SALOME_CATALOG_HANDLER_H
#define SALOME_CATALOG_HANDLER_H
+#include <SALOME_ModuleCatalog.hxx>
+
#include "SALOME_ModuleCatalog_Parser.hxx"
#include <qxml.h>
#include <string>
#include <stack>
#include <map>
-#if defined MODULECATALOG_EXPORTS
-#if defined WIN32
-#define MODULECATALOG_EXPORT __declspec( dllexport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#else
-#if defined WNT
-#define MODULECATALOG_EXPORT __declspec( dllimport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#endif
-
class MODULECATALOG_EXPORT SALOME_ModuleCatalog_Handler : public QXmlDefaultHandler
{
public:
#ifndef MODULECATALOG_IMPL_H
#define MODULECATALOG_IMPL_H
+#include <SALOME_ModuleCatalog.hxx>
+
#include <string>
#include <map>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
-
-#if defined MODULECATALOG_EXPORTS
-#if defined WIN32
-#define MODULECATALOG_EXPORT __declspec( dllexport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#else
-#if defined WNT
-#define MODULECATALOG_EXPORT __declspec( dllimport )
-#else
-#define MODULECATALOG_EXPORT
-#endif
-#endif
-
class MODULECATALOG_EXPORT SALOME_ModuleCatalogImpl: public POA_SALOME_ModuleCatalog::ModuleCatalog,
public PortableServer::RefCountServantBase
{
#ifndef _NAMINGSERVICE_WAITFORSERVERREADINESS_HXX_
#define _NAMINGSERVICE_WAITFORSERVERREADINESS_HXX_
-#include <string>
#include "SALOME_NamingService.hxx"
-#ifdef WNT
-#include <SALOME_WNT.hxx>
-#else
-#define SALOME_WNT_EXPORT
-#endif
-void SALOME_WNT_EXPORT NamingService_WaitForServerReadiness(SALOME_NamingService* NS,
+#include <string>
+
+void NAMINGSERVICE_EXPORT NamingService_WaitForServerReadiness(SALOME_NamingService* NS,
std::string serverName);
#endif
#if !defined ( SERVICEUNREACHABLE_H )
#define SERVICEUNREACHABLE_H
-#include "Utils_SALOME_Exception.hxx"
-
#if defined NAMINGSERVICE_EXPORTS
-#if defined WIN32
+#if defined WNT
#define NAMINGSERVICE_EXPORT __declspec( dllexport )
#else
#define NAMINGSERVICE_EXPORT
#endif
#endif
+#include "Utils_SALOME_Exception.hxx"
+
//! exception class for NamingService : ServiceUnreachable
class NAMINGSERVICE_EXPORT ServiceUnreachable : public SALOME_Exception
#ifndef NOTIFICATION_HXX
#define NOTIFICATION_HXX
+#include <SALOME_NOTIFICATION.hxx>
+
#define NOTIF_WARNING "Warning"
#define NOTIF_STEP "Step"
#define NOTIF_TRACE "Trace"
#include "NOTIFICATION_Supplier.hxx"
#include "NOTIFICATION_Consumer.hxx"
-
-#if defined NOTIFICATION_EXPORTS
-#if defined WIN32
-#define NOTIFICATION_EXPORT __declspec( dllexport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#else
-#if defined WNT
-#define NOTIFICATION_EXPORT __declspec( dllimport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#endif
-
NOTIFICATION_EXPORT char* NOTIFICATION_date();
NOTIFICATION_EXPORT CosNA_EventChannel_ptr NOTIFICATION_channel();
#ifndef NOTIFICATION_Consumer_HXX
#define NOTIFICATION_Consumer_HXX
-#if defined NOTIFICATION_EXPORTS
-#if defined WIN32
-#define NOTIFICATION_EXPORT __declspec( dllexport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#else
-#if defined WNT
-#define NOTIFICATION_EXPORT __declspec( dllimport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#endif
+#include <SALOME_NOTIFICATION.hxx>
class NOTIFICATION_EXPORT NOTIFICATION_Consumer: public POA_CosNotifyComm::StructuredPullConsumer {
public:
#ifndef NOTIFICATION_Supplier_HXX
#define NOTIFICATION_Supplier_HXX
-#if defined NOTIFICATION_EXPORTS
-#if defined WIN32
-#define NOTIFICATION_EXPORT __declspec( dllexport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#else
-#if defined WNT
-#define NOTIFICATION_EXPORT __declspec( dllimport )
-#else
-#define NOTIFICATION_EXPORT
-#endif
-#endif
+#include <SALOME_NOTIFICATION.hxx>
class NOTIFICATION_EXPORT NOTIFICATION_Supplier: public POA_CosNotifyComm::StructuredPushSupplier {
public:
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_NOTIFICATION.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_NOTIFICATION_HXX_
+#define _SALOME_NOTIFICATION_HXX_
+
+#ifdef WNT
+ #if defined NOTIFICATION_EXPORTS
+ #if defined WIN32
+ #define NOTIFICATION_EXPORT __declspec( dllexport )
+ #else
+ #define NOTIFICATION_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define NOTIFICATION_EXPORT __declspec( dllimport )
+ #else
+ #define NOTIFICATION_EXPORT
+ #endif
+ #endif
+#else
+ #define NOTIFICATION_EXPORT
+#endif
+
+#endif
\ No newline at end of file
# if !defined( __RegistryConnexion_HXX__ )
# define __RegistryConnexion_HXX__
+#include <SALOME_Registry.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(SALOME_Registry)
#include <string>
-#if defined REGISTRY_EXPORTS
-#if defined WIN32
-#define REGISTRY_EXPORT __declspec( dllexport )
-#else
-#define REGISTRY_EXPORT
-#endif
-#else
-#if defined WNT
-#define REGISTRY_EXPORT __declspec( dllimport )
-#else
-#define REGISTRY_EXPORT
-#endif
-#endif
-
class REGISTRY_EXPORT RegistryConnexion
{
protected :
# ifndef __RegistryService_h__
# define __RegistryService_h__
+#include <SALOME_Registry.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Registry)
# include <map>
-#if defined REGISTRY_EXPORTS
-#if defined WIN32
-#define REGISTRY_EXPORT __declspec( dllexport )
-#else
-#define REGISTRY_EXPORT
-#endif
-#else
-#if defined WNT
-#define REGISTRY_EXPORT __declspec( dllimport )
-#else
-#define REGISTRY_EXPORT
-#endif
-#endif
-
class REGISTRY_EXPORT RegistryService : public POA_Registry::Components //, public PortableServer::RefCountServantBase
{
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOME_Registry.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOME_Registry_HXX_
+#define _SALOME_Registry_HXX_
+
+#ifdef WNT
+ #if defined REGISTRY_EXPORTS
+ #if defined WIN32
+ #define REGISTRY_EXPORT __declspec( dllexport )
+ #else
+ #define REGISTRY_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define REGISTRY_EXPORT __declspec( dllimport )
+ #else
+ #define REGISTRY_EXPORT
+ #endif
+ #endif
+#else
+ #define REGISTRY_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#include <fstream>
#include <vector>
-
-
-#if defined RESOURCESMANAGER_EXPORTS
-#if defined WIN32
-#define RESOURCESMANAGER_EXPORT __declspec( dllexport )
-#else
-#define RESOURCESMANAGER_EXPORT
-#endif
-#else
-#if defined WNT
-#define RESOURCESMANAGER_EXPORT __declspec( dllimport )
-#else
-#define RESOURCESMANAGER_EXPORT
-#endif
-#endif
-
// --- WARNING ---
// The call of BuildTempFileToLaunchRemoteContainer and RmTmpFile must be done
// in a critical section to be sure to be clean.
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_RessourcesCatalog)
-#if defined RESSOURCESCatalog_EXPORTS
-#if defined WIN32
-#define RESSOURCESCatalog_EXPORT __declspec( dllexport )
-#else
-#define RESSOURCESCatalog_EXPORT
-#endif
-#else
-#if defined WNT
-#define RESSOURCESCatalog_EXPORT __declspec( dllimport )
-#else
-#define RESSOURCESCatalog_EXPORT
-#endif
-#endif
-
class RESSOURCESCatalog_EXPORT SALOME_RessourcesCatalogImpl: public POA_SALOME_RessourcesCatalog::RessourcesCatalog,
public PortableServer::RefCountServantBase
{
#ifndef SALOMEDS_HeaderFile
#define SALOMEDS_HeaderFile
+#include <SALOMEDS_Defines.hxx>
+
#include <Utils_Mutex.hxx>
namespace SALOMEDS
//
// Locker lock;
//
- class Locker : public Utils_Locker
+ class SALOMEDS_EXPORT Locker : public Utils_Locker
{
public:
Locker();
--- /dev/null
+// Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SALOMEDS_Defines.hxx
+// Author : Alexander A. BORODIN
+// Module : SALOME
+
+#ifndef _SALOMEDS_Defines_HXX_
+#define _SALOMEDS_Defines_HXX_
+
+#ifdef WNT
+ #if defined SALOMEDS_EXPORTS
+ #if defined WIN32
+ #define SALOMEDS_EXPORT __declspec( dllexport )
+ #else
+ #define SALOMEDS_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define SALOMEDS_EXPORT __declspec( dllimport )
+ #else
+ #define SALOMEDS_EXPORT
+ #endif
+ #endif
+#else
+ #define SALOMEDS_EXPORT
+#endif
+
+#endif
\ No newline at end of file
#include <TColStd_SequenceOfAsciiString.hxx>
#include <TColStd_HSequenceOfAsciiString.hxx>
#include <TColStd_HSequenceOfTransient.hxx>
-#ifndef WNT
#include <NCollection_DataMap.hxx>
-#else
-#include <NCollection_DataMap1.hxx>
-#endif
//SALOMEDSImpl headers
#include "SALOMEDSImpl_SComponentIterator.hxx"
class SALOMEDSImpl_StudyManager;
class SALOMEDSImpl_GenericAttribute;
-#ifndef WNT
typedef NCollection_DataMap <TCollection_AsciiString, Handle_Standard_Transient> DataMapOfAsciiStringTransient;
typedef NCollection_DataMap <TCollection_AsciiString, TDF_Label> DataMapAsciiStringLabel;
-#else
-typedef NCollection_DataMap1 <TCollection_AsciiString, Handle_Standard_Transient> DataMapOfAsciiStringTransient;
-typedef NCollection_DataMap1 <TCollection_AsciiString, TDF_Label> DataMapAsciiStringLabel;
-#endif
class SALOMEDSImpl_Study : public MMgt_TShared
{
#ifndef _BASETRACECOLLECTOR_HXX_
#define _BASETRACECOLLECTOR_HXX_
+#include <SALOME_LocalTrace.hxx>
+
#include <pthread.h>
#include <semaphore.h>
-
-#if defined SALOMELOCALTRACE_EXPORTS
-#if defined WIN32
-#define SALOMELOCALTRACE_EXPORT __declspec( dllexport )
-#else
-#define SALOMELOCALTRACE_EXPORT
-#endif
-#else
-#if defined WNT
-#define SALOMELOCALTRACE_EXPORT __declspec( dllimport )
-#else
-#define SALOMELOCALTRACE_EXPORT
-#endif
-#endif
-
//! See derived Classes in SALOMELocalTrace for usage without CORBA,
//! see derived Classes in SALOMETraceCollector for usage with CORBA.
#ifndef _FILETRACECOLLECTOR_HXX_
#define _FILETRACECOLLECTOR_HXX_
+#include <Salome_LocalTrace.hxx>
+
#include <string>
#include "LocalTraceBufferPool.hxx"
#include "BaseTraceCollector.hxx"
#ifndef _LOCALTRACEBUFFERPOOL_HXX_
#define _LOCALTRACEBUFFERPOOL_HXX_
+#include <Salome_LocalTrace.hxx>
+
#define TRACE_BUFFER_SIZE 256 // number of entries in circular buffer
// must be power of 2
#define MAX_TRACE_LENGTH 256 // messages are truncated at this size
#ifndef _LOCALTRACECOLLECTOR_HXX_
#define _LOCALTRACECOLLECTOR_HXX_
+#include <Salome_LocalTrace.hxx>
+
#include <string>
#include "LocalTraceBufferPool.hxx"
#include "BaseTraceCollector.hxx"
#include CORBA_SERVER_HEADER(SALOMEDS)
#ifdef WNT
-#include <SALOME_WNT.hxx>
+ #if defined TOOLSDS_EXPORTS
+ #if defined WIN32
+ #define TOOLSDS_EXPORT __declspec( dllexport )
+ #else
+ #define TOOLSDS_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define TOOLSDS_EXPORT __declspec( dllimport )
+ #else
+ #define TOOLSDS_EXPORT
+ #endif
+ #endif
#else
-#define SALOME_WNT_EXPORT
+ #define TOOLSDS_EXPORT
#endif
-class SALOME_WNT_EXPORT SALOMEDS_Tool
+class TOOLSDS_EXPORT SALOMEDS_Tool
{
-
public:
// Returns the unique temporary directory, that is defined in SALOME_TMP_DIR if this variable is set
#ifndef _OPUTIL_HXX
#define _OPUTIL_HXX
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
+#include <SALOME_Utils.hxx>
#include <string>
# ifndef SALOME_STRING
# define SALOME_STRING
+#include <SALOME_Utils.hxx>
+
# include <string>
# include <sstream>
-class SALOME_STRING : public string
+class UTILS_EXPORT SALOME_STRING : public string
{
private :
ostringstream _s ;
# if !defined ( __Utils_CommException_H__ )
# define __Utils_CommException_H__ )
+#include <SALOME_Utils.hxx>
+
# include "Utils_SALOME_Exception.hxx"
class UTILS_EXPORT CommException : public SALOME_Exception
#ifndef _UTILS_CORBAEXCEPTION_HXX_
#define _UTILS_CORBAEXCEPTION_HXX_
+#include <SALOME_Utils.hxx>
+
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Exception)
# if !defined( __DESTRUCTEUR_GENERIQUE__H__ )
# define __DESTRUCTEUR_GENERIQUE__H__
-# include <list>
+#include <SALOME_Utils.hxx>
+
+#include <list>
#include <cassert>
-# include <CORBA.h>
+#include <CORBA.h>
//# include "utilities.h"
/*!\class DESTRUCTEUR_GENERIQUE_
* -# an object method to execute the destruction : operator()().
*/
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
-
-class DESTRUCTEUR_GENERIQUE_
+class UTILS_EXPORT DESTRUCTEUR_GENERIQUE_
{
public :
- UTILS_EXPORT static std::list<DESTRUCTEUR_GENERIQUE_*> *Destructeurs;
+ static std::list<DESTRUCTEUR_GENERIQUE_*> *Destructeurs;
virtual ~DESTRUCTEUR_GENERIQUE_() {}//!< virtual destructor
- UTILS_EXPORT static const int Ajout( DESTRUCTEUR_GENERIQUE_ &objet );//!< adds a destruction object to the list of destructions
- UTILS_EXPORT virtual void operator()( void )=0 ;//!< performs the destruction
-} ;
+ static const int Ajout( DESTRUCTEUR_GENERIQUE_ &objet );//!< adds a destruction object to the list of destructions
+ virtual void operator()( void )=0 ;//!< performs the destruction
+};
/*!\class DESTRUCTEUR_DE_
#ifndef Utils_ExceptHandlers_HeaderFile
#define Utils_ExceptHandlers_HeaderFile
-#include <stdexcept>
+#include <SALOME_Utils.hxx>
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
+#include <stdexcept>
typedef void (*PVF)();
# if !defined( __IDENTITE_H__ )
# define __IDENTITE_H__
+#include <SALOME_Utils.hxx>
+
extern "C"
{
# include <stdlib.h>
#endif
}
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
class UTILS_EXPORT Identity
{
#ifndef Utils_Mutex_HeaderFile
#define Utils_Mutex_HeaderFile
-#include <pthread.h>
+#include <SALOME_Utils.hxx>
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
+#include <pthread.h>
class UTILS_EXPORT Utils_Mutex
{
# if ! defined( __ORB_INIT_HXX__ )
# define __ORB_INIT_HXX__
+#include <SALOME_Utils.hxx>
+
# include "CORBA.h"
#include "Utils_CommException.hxx"
-
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
-
/*!
* Ce composant prend en charge la connexion et la deconnexion a l'orb
* Il est souhaitable de l'utiliser dans un SINGLETON.
#if !defined( __Utils_SALOME_Exception_hxx__ )
#define __Utils_SALOME_Exception_hxx__
+#include <SALOME_Utils.hxx>
+
# include <exception>
# include <iostream>
# define LOCALIZED(message) #message , __FILE__ , __LINE__
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
-
class UTILS_EXPORT SALOME_Exception : public std::exception
{
# if !defined( __SINGLETON__H__ )
# define __SINGLETON__H__
+#include <SALOME_Utils.hxx>
+
# include "Utils_DESTRUCTEUR_GENERIQUE.hxx"
# include <list>
#ifndef _UTILS_SIGNALSHANDLER_H_
#define _UTILS_SIGNALSHANDLER_H_
-
-#if defined UTILS_EXPORTS
-#if defined WIN32
-#define UTILS_EXPORT __declspec( dllexport )
-#else
-#define UTILS_EXPORT
-#endif
-#else
-#if defined WNT
-#define UTILS_EXPORT __declspec( dllimport )
-#else
-#define UTILS_EXPORT
-#endif
-#endif
+#include <SALOME_Utils.hxx>
#include <map>
typedef void (*TSigHandler)(int);
// File : Utils_Timer.hxx
// Module : SALOME
+#include <SALOME_Utils.hxx>
+
#include <stdlib.h>
#include <time.h>
#define _POSIX_
#endif
-class Utils_Timer {
+class UTILS_EXPORT Utils_Timer {
public:
Utils_Timer();
virtual ~Utils_Timer();