diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 8008dd09ccf88d4edef237a184a698cac42f2952 (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h | |
parent | 13d6e89af439164c0ade48e6f5c3e9b3f971e8c9 (diff) | |
download | ATCD-8008dd09ccf88d4edef237a184a698cac42f2952.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h deleted file mode 100644 index f7c9afb87e1..00000000000 --- a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h +++ /dev/null @@ -1,87 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file XML_Saver.h - * - * $Id$ - * - * @author Jonathan Pollack <pollack_j@ociweb.com> - */ -//============================================================================= - -#ifndef XML_SAVER_H -#define XML_SAVER_H -#include /**/ "ace/pre.h" - -#include "orbsvcs/Notify/Topology_Saver.h" - -#include "ace/streams.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -namespace TAO_Notify -{ - -/** - * \brief Save Notification Service Topology to an XML file. - */ -class XML_Saver : public Topology_Saver -{ -public: - /// Construct an XML_Saver. - /// Initialization is deferred to "open()" - XML_Saver (bool timestamp = true); - - virtual ~XML_Saver (); - - /// Open the output file. - /// \param file_name the fully qualified file name - /// \return true if successful - bool open (const ACE_CString & file_name, size_t backup_count); - - ////////////////////////////////// - // Override Topology_Saver methods - // see Topology_Saver.h for doc - virtual bool begin_object (CORBA::Long id, - const ACE_CString& type, - const NVPList& attrs, - bool changed - ACE_ENV_ARG_DECL); - - virtual void end_object (CORBA::Long id, - const ACE_CString& type - ACE_ENV_ARG_DECL); - - virtual void close (ACE_ENV_SINGLE_ARG_DECL); - -private: - void backup_file_name (char * file_path, int nfile); - -private: - /// A stream representing our current output. - FILE * output_; - bool close_out_; - - /// the name of the output file - ACE_CString base_name_; - size_t backup_count_; - - /// true to enable timestamping - bool timestamp_; - - /// A string consisting of spaces that is our current indentation level. - ACE_CString indent_; - -}; - -} // namespace TAO_Notify - -TAO_END_VERSIONED_NAMESPACE_DECL - -#include /**/ "ace/post.h" -#endif /* XML_SAVER_H */ |