Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / doc / exemples / exemple9 / alglin_i.hxx
1 #ifndef ALGLIN_I_\r
2 #define ALGLIN_I_\r
3 \r
4 #include "alglin.hxx"\r
5 #include <SALOMEconfig.h>\r
6 #include CORBA_SERVER_HEADER(alglin)\r
7 #include "SALOME_Component_i.hxx"\r
8 \r
9 class AlgLin_i : public POA_Engines::AlgLin,\r
10                  public Engines_Component_i {\r
11 \r
12 private:\r
13 \r
14   alglin A_interne;\r
15 \r
16 public:\r
17 \r
18   AlgLin_i(CORBA::ORB_ptr orb,\r
19            PortableServer::POA_ptr poa,\r
20            PortableServer::ObjectId * contId, \r
21            const char *instanceName,\r
22            const char *interfaceName);\r
23 \r
24   virtual ~AlgLin_i();\r
25 \r
26   void addvec(Engines::vecteur_out C, \r
27               const Engines::vecteur& A, \r
28               const Engines::vecteur& B);\r
29 \r
30   CORBA::Double prdscl(const Engines::vecteur& A, \r
31                        const Engines::vecteur& B);\r
32 \r
33   Engines::vecteur* create_vector(CORBA::Long n);\r
34   void destroy_vector(const Engines::vecteur& V);\r
35   \r
36 };\r
37 \r
38 \r
39 extern "C"\r
40 PortableServer::ObjectId * \r
41      AlgLinEngine_factory(CORBA::ORB_ptr orb ,\r
42                           PortableServer::POA_ptr poa , \r
43                           PortableServer::ObjectId * contId ,\r
44                           const char *instanceName ,\r
45                           const char *interfaceName );\r
46 \r
47 #endif\r