diff options
Diffstat (limited to 'trunk/TAO/orbsvcs/tests/FT_App/FT_Creator.h')
-rw-r--r-- | trunk/TAO/orbsvcs/tests/FT_App/FT_Creator.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/trunk/TAO/orbsvcs/tests/FT_App/FT_Creator.h b/trunk/TAO/orbsvcs/tests/FT_App/FT_Creator.h new file mode 100644 index 00000000000..14e2664fda9 --- /dev/null +++ b/trunk/TAO/orbsvcs/tests/FT_App/FT_Creator.h @@ -0,0 +1,117 @@ +/* -*- C++ -*- */ +//============================================================================= +/** + * @file FT_Creator.h + * + * $Id$ + * + * This file is part of Fault Tolerant CORBA. + * Main wrapped around TAO_Object_Group_Creator + * + * @author Dale Wilson <wilson_d@ociweb.com> + */ +//============================================================================= + +#ifndef FT_CREATOR_H +#define FT_CREATOR_H + +#include /**/ "ace/pre.h" + +#include <ace/ACE.h> + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "TAO_Object_Group_Creator.h" +#include "ace/OS_NS_stdio.h" + +namespace FTAPP +{ + class FT_Creator + { + typedef ACE_Vector<ACE_CString> StringVec; + public: + /////////////////////////// + // construction/destruction + FT_Creator (); + + ~FT_Creator (); + + ///////////////// + // initialization + int parse_args (int argc, char *argv[]); + + int init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL); + + //////////// + // execution + int run (ACE_ENV_SINGLE_ARG_DECL); + + //////////// + // shut down + int fini (); + + ///////////////// + // implementation + private: + void usage (FILE* out)const; + + //////////////////// + // forbidden methods + private: + FT_Creator (const FT_Creator & rhs); + FT_Creator & operator = (const FT_Creator & rhs); + + //////////////// + // Data members + private: + + TAO::Object_Group_Creator creator_; + CORBA::ORB_var orb_; + const char * registry_ior_; + StringVec create_roles_; + StringVec unregister_roles_; + + + CosNaming::NamingContext_var naming_context_; + + ::FT::ReplicationManager_var replication_manager_; + /** + * bool: true if we have a real replication manager + */ + int have_replication_manager_; + + /** + * bool: true if we should write individual IOR files + */ + int write_iors_; + + /** + * bool: true if we should write IOGR to a file + */ + int write_iogr_; + + /** + * bool: true if we should write IOGR to a Name Service + */ + int ns_register_; + + /** + * sequence number applied to created IOGRs + */ + unsigned long iogr_seq_; + + /** + * prefix for names + */ + const char * prefix_; + + + }; + +} // namespace TAO + +#include /**/ "ace/post.h" + +#endif // FT_CREATOR_H |