summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Generic_Servant/MyFooServant.h
blob: 3b7502cb4665beec592bdd3a9b249866291ea26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if !defined (MYFOOSERVANT_H)
#define MYFOOSERVANT_H

#include "FooS.h"

class MyFooServant : public POA_Foo
{
public:
  MyFooServant (PortableServer::POA_ptr poa, 
                CORBA::Long value);
  
  virtual ~MyFooServant (void);

  virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env);

  virtual CORBA::Long doit (CORBA::Environment &env);

protected:
  PortableServer::POA_var poa_;
  CORBA::Long value_;
};

#endif /* MYFOOSERVANT_H */