summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Generic_Servant/MyFooServant.h
blob: 60d08af7ce1d7d31cfa7aeec2e85f5008d44c535 (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
// $Id$
//=============================================================================
//
//
// = FILENAME
//     MyFooServant.h
//
// = DESCRIPTION
//     Defines MyFooServant class for the Foo interface
//
// = AUTHOR
//     Irfan Pyarali
//
//=============================================================================

#if !defined (MYFOOSERVANT_H)
#define MYFOOSERVANT_H

#include "FooS.h"

class GENERIC_SERVANT_Export MyFooServant : public POA_Foo
{
public:
  // constructor - takes a POA and a value parameter
  MyFooServant (PortableServer::POA_ptr poa,
                CORBA::Long value);

  // Destructor
  virtual ~MyFooServant (void);

  //Returns the Default POA of this Servant object
  virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &env);

  // Simple doit method
  virtual CORBA::Long doit (CORBA::Environment &env);

protected:
  // Default poa associated with this servant
  PortableServer::POA_var poa_;
  CORBA::Long value_;
};

#endif /* MYFOOSERVANT_H */