X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTypesCheck%2FTypesCheck_Impl.hxx;h=7c48824b11ec13a1660c9f95d559a50d8adb5ae8;hb=397cb75772a667b0467fbcc3f4ccb9329c0caa02;hp=73fcade8c5f4457a6760207af21c51dc68f4e64d;hpb=c599ae6a6f28dbab7e4e7d131419eddf30e23b0a;p=samples%2Fcomponent.git diff --git a/src/TypesCheck/TypesCheck_Impl.hxx b/src/TypesCheck/TypesCheck_Impl.hxx index 73fcade..7c48824 100644 --- a/src/TypesCheck/TypesCheck_Impl.hxx +++ b/src/TypesCheck/TypesCheck_Impl.hxx @@ -1,34 +1,44 @@ -// SuperVisionTest SyrComponent : example of component performing some mathinatical operations +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // -// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com +// 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 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 SyrComponent : example of component performing some mathinatical operations // File : SyrComponent_Impl.hxx // Author : Jean Rahuel // Module : SuperVisionTest // $Header: - +// #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 #include CORBA_SERVER_HEADER(AddComponent) #include CORBA_SERVER_HEADER(TypesCheck) @@ -37,8 +47,8 @@ #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 , @@ -50,6 +60,8 @@ class TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck , 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 ) ; @@ -76,6 +88,7 @@ class TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck , }; extern "C" + TYPESCHECKENGINE_EXPORT PortableServer::ObjectId * TypesCheckEngine_factory ( CORBA::ORB_ptr orb , PortableServer::POA_ptr poa , PortableServer::ObjectId * contId ,