summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/Repository.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/Repository.h')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/Repository.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/Repository.h b/TAO/orbsvcs/tests/ImplRepo/Repository.h
new file mode 100644
index 00000000000..aa8467e2d2c
--- /dev/null
+++ b/TAO/orbsvcs/tests/ImplRepo/Repository.h
@@ -0,0 +1,35 @@
+// $Id$
+#if !defined (REPOSITORY_H)
+#define REPOSITORY_H
+
+#include "ace/Naming_Context.h"
+
+class Repository
+{
+public:
+ Repository ();
+ // Default Constructor
+
+ int add (const char *key, const char *comm_line, const char *env, const char *wdir);
+ // Add a new server to the Repository
+
+ int remove (const char *key);
+ // Removes the server from the Repository
+
+ int resolve (const char *key, char *&comm_line, char *&env, char *&wdir);
+ // Find the key record in the Repository
+
+ // = Accessor methods
+ int get_comm_line (const char *key, char *&comm_line);
+ int get_env (const char *key, char *&env);
+ int get_wdir (const char *key, char *&wdir);
+
+ // Dump method
+ void dump (void);
+
+private:
+ ACE_Naming_Context repository_;
+};
+
+
+#endif /* REPOSITORY_H */