summaryrefslogtreecommitdiff
path: root/orbsvcs/tests/Concurrency/CC_naming_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'orbsvcs/tests/Concurrency/CC_naming_service.h')
-rw-r--r--orbsvcs/tests/Concurrency/CC_naming_service.h80
1 files changed, 39 insertions, 41 deletions
diff --git a/orbsvcs/tests/Concurrency/CC_naming_service.h b/orbsvcs/tests/Concurrency/CC_naming_service.h
index 9a992338ee2..b5ef3db0f05 100644
--- a/orbsvcs/tests/Concurrency/CC_naming_service.h
+++ b/orbsvcs/tests/Concurrency/CC_naming_service.h
@@ -1,22 +1,18 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Concurrency
-//
-// = FILENAME
-// CC_naming_service.h
-//
-// = DESCRIPTION
-// This class implements the naming services necessary to test the
-// concurrency service.
-//
-// = AUTHORS
-// Torben Worm <tworm@cs.wustl.edu>
-//
-// ============================================================================
+
+//=============================================================================
+/**
+ * @file CC_naming_service.h
+ *
+ * $Id$
+ *
+ * This class implements the naming services necessary to test the
+ * concurrency service.
+ *
+ *
+ * @author Torben Worm <tworm@cs.wustl.edu>
+ */
+//=============================================================================
+
#include "orbsvcs/CosConcurrencyControlC.h"
#include "orbsvcs/CosNamingC.h"
@@ -25,60 +21,62 @@
#ifndef _CC_NAMING_SERVICE_H_
#define _CC_NAMING_SERVICE_H_
+/**
+ * @class CC_naming_service
+ *
+ * @brief Defines a class that encapsulates the necessary naming service
+ * functions for the concurrency service.
+ *
+ * This class declares an interface to the naming service for the
+ * concurrency service tests.
+ */
class CC_naming_service
{
- // = TITLE
- // Defines a class that encapsulates the necessary naming service
- // functions for the concurrency service.
- //
- // = DESCRIPTION
- // This class declares an interface to the naming service for the
- // concurrency service tests.
public:
+ /// Default constructor
CC_naming_service ();
- // Default constructor
+ /// Constructor
CC_naming_service (CORBA::ORB_var orb_);
- // Constructor
+ /// Default destructor.
~CC_naming_service (void);
- // Default destructor.
+ /// Initialization method must be called after first call of Instance()
+ /// in order to initialize the object correctly
void Init (CORBA::ORB_var orb_);
- // Initialization method must be called after first call of Instance()
- // in order to initialize the object correctly
+ /// Lookup a name in the naming service (context, name)
CORBA::Object_var get_obj_from_name (const char *c_name,
const char *name);
- // Lookup a name in the naming service (context, name)
+ /// Bind a name in the concurrency context.
void bind_name (const char *n,
CORBA::Object_ptr obj);
- // Bind a name in the concurrency context.
+ /// Gets the cc lock set factory which is common for all tests.
CosConcurrencyControl::LockSetFactory_var get_lock_set_factory (void);
- // Gets the cc lock set factory which is common for all tests.
+ /// The naming service object is a singleton
static CC_naming_service *Instance(void);
- // The naming service object is a singleton
private:
+ /// Function to initialize the naming service.
int init_naming_service (void);
- // Function to initialize the naming service.
+ /// Key of factory obj ref.
char *cc_factory_key_;
- // Key of factory obj ref.
+ /// Remember our orb.
CORBA::ORB_var orb_;
- // Remember our orb.
+ /// Name service wrapper class
TAO_Naming_Client my_name_client_;
- // Name service wrapper class
+ /// factory pointer for the lock set.
CosConcurrencyControl::LockSetFactory_var factory_;
- // factory pointer for the lock set.
+ /// The instance of the naming service object
static CC_naming_service *instance_;
- // The instance of the naming service object
};
#endif /* !defined (_CC_NAMING_SERVICE_H_) */