summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/ImplRepo_Service/Repository.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/Repository.h')
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Repository.h108
1 files changed, 0 insertions, 108 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Repository.h b/TAO/orbsvcs/ImplRepo_Service/Repository.h
deleted file mode 100644
index a1c4a23798f..00000000000
--- a/TAO/orbsvcs/ImplRepo_Service/Repository.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/orbsvcs/ImplRepo_Service
-//
-// = FILENAME
-// Repository.h
-//
-// = DESCRIPTION
-// This class implements the Repository for the Implementation Repository.
-//
-// = AUTHOR
-// Darrell Brunsch <brunsch@cs.wustl.edu>
-//
-// ============================================================================
-
-#if !defined (REPOSITORY_H)
-#define REPOSITORY_H
-
-#include "ace/Hash_Map_Manager.h"
-#include "ace/Synch.h"
-
-#if defined (UNICODE)
-#define ACE_TString ACE_WString
-#else /* UNICODE */
-#define ACE_TString ACE_CString
-#endif /* UNICODE */
-
-struct Repository_Record
-{
- // Constructors
- Repository_Record ();
- Repository_Record (const Repository_Record &);
- Repository_Record (const ASYS_TCHAR *c,
- const ASYS_TCHAR *e,
- const ASYS_TCHAR *w,
- const ASYS_TCHAR *h,
- const unsigned short p,
- const ASYS_TCHAR *pi);
-
-
- // Destructor
- ~Repository_Record ();
-
- // Assignment Operator
- Repository_Record &operator= (Repository_Record &);
-
- // Fields
- ASYS_TCHAR *comm_line;
- ASYS_TCHAR *env;
- ASYS_TCHAR *wdir;
- ASYS_TCHAR *host;
- unsigned short port;
- ASYS_TCHAR *ping_ior;
-};
-
-class Repository
-{
-public:
- Repository ();
- // Default Constructor
-
- typedef ACE_Hash_Map_Entry<ACE_TString,
- Repository_Record *> HASH_IR_ENTRY;
-
- typedef ACE_Hash_Map_Manager_Ex<ACE_TString,
- Repository_Record *,
- ACE_Hash<ACE_TString>,
- ACE_Equal_To<ACE_TString>,
- ACE_Null_Mutex> HASH_IR_MAP;
-
- typedef ACE_Hash_Map_Iterator_Ex<ACE_TString,
- Repository_Record *,
- ACE_Hash<ACE_TString>,
- ACE_Equal_To<ACE_TString>,
- ACE_Null_Mutex> HASH_IR_ITER;
-
- int add (ACE_TString key, const Repository_Record &rec);
- // Add a new server to the Repository
-
- int update (ACE_TString key, const Repository_Record &rec);
- // Updates an existing key with <rec>
-
- int remove (ACE_TString key);
- // Removes the server from the Repository
-
- int resolve (ACE_TString key, Repository_Record &rec);
- // Find the key record in the Repository
-
- // = Accessor methods
- int get_comm_line (ACE_TString key, ASYS_TCHAR *&comm_line);
- int get_env (ACE_TString key, ASYS_TCHAR *&env);
- int get_wdir (ACE_TString key, ASYS_TCHAR *&wdir);
- int get_ping_ior (ACE_TString key, ASYS_TCHAR *&ping_ior);
- int get_hostport (ACE_TString key, ASYS_TCHAR *&host, unsigned short &port);
-
- // Dump method
- void dump (void);
-
-private:
- HASH_IR_MAP repository_;
-};
-
-
-#endif /* REPOSITORY_H */