1 // SuperVisionTest SyrComponent : example of component performing some mathinatical operations
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SyrComponent_Impl.hxx
25 // Author : Jean Rahuel
26 // Module : SuperVisionTest
29 #ifndef _TYPESCHECK_IMPL_HXX_
30 #define _TYPESCHECK_IMPL_HXX_
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(AddComponent)
34 #include CORBA_SERVER_HEADER(TypesCheck)
35 #include CORBA_SERVER_HEADER(SALOME_Component)
36 #include "SALOME_Component_i.hxx"
38 #include "AddComponent_Impl.hxx"
40 class TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck ,
41 public Engines_Component_i {
44 TypesCheck_Impl( CORBA::ORB_ptr orb ,
45 PortableServer::POA_ptr poa ,
46 PortableServer::ObjectId * contId ,
47 const char *instanceName ,
48 const char *interfaceName ,
49 const bool kactivate = true ) ;
51 virtual ~TypesCheck_Impl();
53 virtual void StringCheck( const char * InString , _CORBA_String_out OutString ) ;
55 virtual void BoolCheck( const bool InBool , bool & OutBool ) ;
57 virtual void CharCheck( const unsigned char InChar , unsigned char & OutChar ) ;
59 virtual void ShortCheck( const short InShort , short & OutShort ) ;
61 virtual void IntCheck( const int InInt , int & OutInt ) ;
63 virtual void LongCheck( const long InLong , long & OutLong ) ;
65 virtual void FloatCheck( const float InFloat , float & OutFloat ) ;
67 virtual void DoubleCheck( const double InDouble , double & OutDouble ) ;
69 virtual void ObjRefCheck( const SuperVisionTest::Adder_ptr InObjRef , SuperVisionTest::Adder_out OutObjRef ) ;
71 virtual void MiscTypes( const char * InString , const bool InBool , const unsigned char InChar , const short InShort , const long InLong , const float InFloat , const double InDouble , SuperVisionTest::Adder_ptr InObjRef , _CORBA_String_out OutString , bool & OutBool , unsigned char & OutChar , short & OutShort , long & OutLong , float & OutFloat , double & OutDouble , SuperVisionTest::Adder_out OutObjRef ) ;
79 PortableServer::ObjectId * TypesCheckEngine_factory ( CORBA::ORB_ptr orb ,
80 PortableServer::POA_ptr poa ,
81 PortableServer::ObjectId * contId ,
82 const char *instanceName ,
83 const char *interfaceName ) ;