Salome HOME
Revert "Synchronize adm files"
[samples/dsccode.git] / src / DSCCODBENG / DSCCODBENG.hxx
1 #ifndef _DSCCODBENG_HXX_
2 #define _DSCCODBENG_HXX_
3
4 #include "Superv_Component_i.hxx"
5 #include "DSCCODE.hh"
6 #include "data_short_port_uses.hxx"
7 #include "data_short_port_provides.hxx"
8
9 class DSCCODB_i:
10   public virtual POA_DSCCODE::DSCCODB,
11   public virtual Superv_Component_i
12 {
13   public:
14     DSCCODB_i(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, 
15               PortableServer::ObjectId * contId, 
16                     const char *instanceName, const char *interfaceName);
17     virtual ~DSCCODB_i();
18     CORBA::Boolean init_service(const char * service_name);
19     void prun(CORBA::Long niter);
20     void trun(CORBA::Long niter);
21   private:
22     data_short_port_provides * _in_port;
23     data_short_port_uses * _out_port;
24 };
25
26 extern "C"
27 {
28     PortableServer::ObjectId * DSCCODBEngine_factory( CORBA::ORB_ptr orb, 
29                                                       PortableServer::POA_ptr poa, 
30                                                       PortableServer::ObjectId * contId,
31                                                             const char *instanceName, 
32                                                       const char *interfaceName);
33 }
34 #endif