diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
commit | 313d763c57f0116ae8a4d516a339356e20578e19 (patch) | |
tree | 2f3d376496d8634487d22da4494ba47b13cedee8 /TAO/orbsvcs/IFR_Service/Options.h | |
parent | 5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff) | |
download | ATCD-OS-h_refactor.tar.gz |
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'TAO/orbsvcs/IFR_Service/Options.h')
-rw-r--r-- | TAO/orbsvcs/IFR_Service/Options.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/TAO/orbsvcs/IFR_Service/Options.h b/TAO/orbsvcs/IFR_Service/Options.h new file mode 100644 index 00000000000..cfe4649a057 --- /dev/null +++ b/TAO/orbsvcs/IFR_Service/Options.h @@ -0,0 +1,81 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/orbsvcs/IFR_Service +// +// = FILENAME +// Options.h +// +// = DESCRIPTION +// This class implements the Options container for the Interface +// Repository. +// +// = AUTHOR +// Jeff Parsons +// +// ============================================================================ + +#ifndef OPTIONS_H +#define OPTIONS_H + +#include "ace/Singleton.h" + +class Options +{ + // = TITLE + // Maintains the global options. + // + // = DESCRIPTION + // This class is converted into a Singleton by the + // <ACE_Singleton> template. +public: + Options (); + // Default Constructor + + ~Options(); + // dtor + + int parse_args (int argc, + ACE_TCHAR *argv[]); + // Parse the command-line arguments and initialize the options. + + const char *ior_output_file (void) const; + // Return the file where the IOR of the server object is stored. + + int persistent (void) const; + // Is the Interface Repository persistent? + + const char *persistent_file (void) const; + // Return the default filename for persistent IFR. + + int using_registry (void) const; + // Are we using a WIN32 registry as the backing store? + + int enable_locking (void) const; + // Should the repository have a real mutex or a null mutex? + +private: + char *ior_output_file_; + // File where the IOR of the server object is stored. + + int persistent_; + // Is the Interface Repository persistent? + + char *persistent_file_; + // Default filename for persistent IFR. + + int using_registry_; + // Are we using a WIN32 registry as the backing store? + + int enable_locking_; + // Should the repository have a real mutex or a null mutex? +}; + +// Typedef an Options Singleton. +typedef ACE_Singleton <Options, ACE_Null_Mutex> OPTIONS; + +#endif /* OPTIONS_H */ + |