blob: f3529a34305d61b35635585b79c9adb93d4ce40e (
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
57
58
59
|
// $Id$
#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
, public PortableServer::RefCountServantBase
{
int n_;
public:
DynServer(void);
virtual ~DynServer();
virtual CORBA::Long get() ACE_THROW_SPEC ((CORBA::SystemException));
};
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[])
ACE_THROW_SPEC ((CORBA::SystemException));
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
|