Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Load_Balancing_persistent / Identity_i.h
blobcf6a00086677d6f9142762689132ef77482a081c
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Identity_i.h
6 * Implements the interface in Identity.idl.
8 * @author Marina Spivak <marina@cs.wustl.edu> with modifications by Bala Natarajan <bala@cs.wustl.edu>
9 */
10 //=============================================================================
12 #ifndef IDENTITY_I_H_
13 #define IDENTITY_I_H_
15 #include "IdentityS.h"
17 class Identity_i :
18 public virtual POA_Identity
20 // = TITLE
21 // This class implements Identity.idl interface.
22 public:
24 /// Constructor - initializes the name of this object.
25 Identity_i (const char *name,
26 PortableServer::POA_ptr poa);
28 /// Destructor.
29 ~Identity_i (void);
31 /// Returns the name of this object.
32 virtual void get_name (CORBA::String_out name);
34 /// Method for the POA that will return the persistent POA_ptr stored
35 /// in here..
36 PortableServer::POA_ptr _default_POA (void);
38 private:
40 /// Stores the name of this object.
41 CORBA::String_var name_;
43 PortableServer::POA_var poa_;
46 #endif /* IDENTITY_I_H_ */