blob: 2cf2373b2426809ec348a0a476b92294d6e6e3e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef DYNSERVER_H
#define DYNSERVER_H
#include "dynserver_export.h"
#include "testS.h"
#include "tao/Object_Loader.h"
#include "ace/Auto_Ptr.h"
// Trivial test corba object
class DynServer_Export DynServer
: public POA_test
{
int n_;
public:
DynServer(void);
virtual ~DynServer();
virtual CORBA::Long get();
};
class DynServer_ORB_Runner;
// This dll supports the service configurator framework
class DynServer_Export DynServer_Loader : public TAO_Object_Loader
{
public:
DynServer_Loader(void);
// spawns a thread to run an internal orb which has activated
// a single DynServer servant.
virtual int init (int argc, ACE_TCHAR *argv[]);
// Allows the service configurator to shutdown the orb
virtual int fini (void);
// Not supported
virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
int argc,
ACE_TCHAR *argv[]);
private:
CORBA::ORB_var orb_;
PortableServer::POA_var root_poa_;
DynServer service_;
ACE_Auto_Ptr<DynServer_ORB_Runner> runner_;
private:
ACE_UNIMPLEMENTED_FUNC (DynServer_Loader (const DynServer_Loader &))
ACE_UNIMPLEMENTED_FUNC (DynServer_Loader &operator = (const DynServer_Loader &))
};
ACE_FACTORY_DECLARE (DynServer, DynServer_Loader)
#endif
|