Salome HOME
363ea27ac98cc738c88e4796a18e1ee2145dd32d
[samples/hello.git] / src / HELLO / HELLO.hxx
1 // Copyright (C) 2005  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/
18 //
19 #ifndef _HELLO_HXX_
20 #define _HELLO_HXX_
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(HELLO_Gen)
24 #include "SALOME_Component_i.hxx"
25
26 class HELLO:
27   public POA_HELLO_ORB::HELLO_Gen,
28   public Engines_Component_i 
29 {
30
31 public:
32     HELLO(CORBA::ORB_ptr orb,
33             PortableServer::POA_ptr poa,
34             PortableServer::ObjectId * contId, 
35             const char *instanceName, 
36             const char *interfaceName);
37     virtual ~HELLO();
38
39     //
40
41     char* makeBanner(const char* name);
42
43 };
44
45 extern "C"
46     PortableServer::ObjectId * HELLOEngine_factory(
47             CORBA::ORB_ptr orb,
48             PortableServer::POA_ptr poa,
49             PortableServer::ObjectId * contId,
50             const char *instanceName,
51             const char *interfaceName);
52
53
54 #endif