diff options
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/Locator_Options.h')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/Locator_Options.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h index 6f041cfdd71..8c62959de12 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h +++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h @@ -41,13 +41,6 @@ public: SC_REMOVE }; - enum RepoMode { - REPO_NONE, - REPO_XML_FILE, - REPO_HEAP_FILE, - REPO_REGISTRY - }; - Options (); /// Parse the command-line arguments and initialize the options. @@ -81,6 +74,14 @@ public: /// Do we allow modifications to the servers? bool readonly (void) const; + /// Which type of repository is to be used? + enum RepoMode { + REPO_NONE, + REPO_XML_FILE, + REPO_SHARED_FILES, + REPO_HEAP_FILE, + REPO_REGISTRY + }; RepoMode repository_mode (void) const; /// Do we wish to clear out the repository @@ -96,6 +97,10 @@ public: bool unregister_if_address_reused (void) const; + /// Indicate what type of ImR Locator this is. + enum ImrType { BACKUP_IMR, PRIMARY_IMR, STANDALONE_IMR }; + ImrType imr_type(void) const; + private: /// Parses and pulls out arguments for the ImR int parse_args (int &argc, ACE_TCHAR *argv[]); @@ -148,6 +153,9 @@ private: /// Should check the server address and remove previous server if /// the address is reused. bool unregister_if_address_reused_; + + /// The type of ImR Locator this is. + ImrType imr_type_; }; #endif |