summaryrefslogtreecommitdiff
path: root/trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h')
-rw-r--r--trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h b/trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h
new file mode 100644
index 00000000000..3712d79c9f1
--- /dev/null
+++ b/trunk/TAO/examples/Load_Balancing_persistent/Identity_i.h
@@ -0,0 +1,52 @@
+/* -*- C++ -*- */
+// $Id$
+// ============================================================================
+//
+// = FILENAME
+// Identity_i.h
+//
+// = DESCRIPTION
+// Implements the interface in Identity.idl.
+//
+// = AUTHOR
+// Marina Spivak <marina@cs.wustl.edu>
+// with modifications by Bala Natarajan <bala@cs.wustl.edu>
+// ============================================================================
+#ifndef IDENTITY_I_H_
+#define IDENTITY_I_H_
+
+#include "IdentityS.h"
+
+class Identity_i :
+ public virtual POA_Identity
+{
+ // = TITLE
+ // This class implements Identity.idl interface.
+public:
+
+ Identity_i (const char *name,
+ PortableServer::POA_ptr poa);
+ // Constructor - initializes the name of this object.
+
+ ~Identity_i (void);
+ // Destructor.
+
+ virtual void get_name (CORBA::String_out name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Returns the name of this object.
+
+ PortableServer::POA_ptr _default_POA (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // Method for the POA that will return the persistent POA_ptr stored
+ // in here..
+
+private:
+
+ CORBA::String_var name_;
+ // Stores the name of this object.
+
+ PortableServer::POA_var poa_;
+};
+
+#endif /* IDENTITY_I_H_ */