Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[samples/component.git] / src / TypesCheck / TypesCheck_Impl.hxx
1 //  SuperVisionTest SyrComponent : example of component performing some mathinatical operations
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : SyrComponent_Impl.hxx
25 //  Author : Jean Rahuel
26 //  Module : SuperVisionTest
27 //  $Header:
28
29 #ifndef _TYPESCHECK_IMPL_HXX_
30 #define _TYPESCHECK_IMPL_HXX_
31
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"
37
38 #include "AddComponent_Impl.hxx"
39
40 class TypesCheck_Impl : public POA_SuperVisionTest::TypesCheck ,
41                         public Engines_Component_i {
42   public:
43     TypesCheck_Impl() ;
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 ) ;
50
51     virtual ~TypesCheck_Impl();
52
53     virtual void StringCheck( const char * InString , _CORBA_String_out OutString ) ;
54
55     virtual void BoolCheck( CORBA::Boolean InBool , CORBA::Boolean & OutBool ) ;
56
57     virtual void CharCheck( unsigned char InChar , unsigned char & OutChar ) ;
58
59     virtual void ShortCheck( short InShort , short & OutShort ) ;
60
61     virtual void IntCheck( int InInt , int & OutInt ) ;
62
63     virtual void LongCheck( CORBA::Long InLong , CORBA::Long & OutLong ) ;
64
65     virtual void FloatCheck( float InFloat , float & OutFloat ) ;
66
67     virtual void DoubleCheck( double InDouble , double & OutDouble ) ;
68
69     virtual void ObjRefCheck( SuperVisionTest::Adder_ptr InObjRef , SuperVisionTest::Adder_out OutObjRef ) ;
70
71     virtual void MiscTypes( const char * InString , CORBA::Boolean InBool , unsigned char InChar , short InShort , CORBA::Long InLong , float InFloat , double InDouble , SuperVisionTest::Adder_ptr InObjRef , _CORBA_String_out OutString , CORBA::Boolean & OutBool , unsigned char & OutChar , short & OutShort , CORBA::Long & OutLong , float & OutFloat , double & OutDouble , SuperVisionTest::Adder_out OutObjRef ) ;
72
73   private:
74
75
76 };
77
78 extern "C"
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 ) ;
84
85 #endif