X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FATOMSOLV%2FATOMSOLV.hxx;h=ff7eb7b88728c314c10b6ba615f7ec84f60300f5;hb=b9a062b53f4a10d623731ee18e5d040cc27f45df;hp=91490f4597856860efbb53058b31369afd9c26e1;hpb=eb01381266af8198deef28bb16eae577fdcfc488;p=samples%2Fatomsolv.git diff --git a/src/ATOMSOLV/ATOMSOLV.hxx b/src/ATOMSOLV/ATOMSOLV.hxx index 91490f4..ff7eb7b 100644 --- a/src/ATOMSOLV/ATOMSOLV.hxx +++ b/src/ATOMSOLV/ATOMSOLV.hxx @@ -1,23 +1,21 @@ -// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2014 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, or (at your option) any later version. // -// 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. // -// 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 // -// 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 // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com #ifndef _ATOMSOLV_HXX_ #define _ATOMSOLV_HXX_ @@ -29,7 +27,18 @@ #include -class ATOMSOLV: +#if defined WIN32 +# if defined ATOMSOLV_EXPORTS || defined ATOMSOLVEngine_EXPORTS +# define ATOMSOLV_EXPORT __declspec( dllexport ) +# else +# define ATOMSOLV_EXPORT __declspec( dllimport ) +# endif +#else +# define ATOMSOLV_EXPORT +#endif + + +class ATOMSOLV_EXPORT ATOMSOLV: public POA_ATOMSOLV_ORB::ATOMSOLV_Gen, public Engines_Component_i { @@ -45,12 +54,14 @@ public: CORBA::Boolean setData( CORBA::Long studyID, const ATOMSOLV_ORB::TMoleculeList& theData ); CORBA::Boolean getData( CORBA::Long studyID, ATOMSOLV_ORB::TMoleculeList_out outData ); CORBA::Boolean processData( CORBA::Long studyID ); + virtual char* getVersion(); private: std::map myData; }; extern "C" + ATOMSOLV_EXPORT PortableServer::ObjectId * ATOMSOLVEngine_factory(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId * contId,