TAO_Notify::XML_Loader Class Reference

Load Notification Service Topology from an XML file. More...

#include <XML_Loader.h>

Inheritance diagram for TAO_Notify::XML_Loader:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify::XML_Loader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XML_Loader ()
 The constructor.
virtual ~XML_Loader ()
bool open (const ACE_TString &file_name)
virtual void load (Topology_Object *root ACE_ENV_ARG_DECL)
 Begin the restore process.
virtual void startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL) throw (ACEXML_SAXException)
virtual void endElement (const ACEXML_Char *, const ACEXML_Char *, const ACEXML_Char *name ACEXML_ENV_ARG_DECL_NOT_USED) throw (ACEXML_SAXException)

Private Types

typedef ACE_Unbounded_Stack<
Topology_Object * > 
TopoStack

Private Attributes

ACE_TString file_name_
 The name of the file from which data is read.
FILE * input_
 A stream representing our current output.
TopoStack object_stack_
bool live_

Detailed Description

Load Notification Service Topology from an XML file.


Member Typedef Documentation

typedef ACE_Unbounded_Stack<Topology_Object*> TAO_Notify::XML_Loader::TopoStack [private]
 


Constructor & Destructor Documentation

TAO_Notify::XML_Loader::XML_Loader  ) 
 

The constructor.

TAO_Notify::XML_Loader::~XML_Loader  )  [virtual]
 


Member Function Documentation

void TAO_Notify::XML_Loader::endElement const ACEXML_Char *  ,
const ACEXML_Char *  ,
const ACEXML_Char *name  ACEXML_ENV_ARG_DECL_NOT_USED
throw (ACEXML_SAXException) [virtual]
 

void TAO_Notify::XML_Loader::load Topology_Object *root  ACE_ENV_ARG_DECL  )  [virtual]
 

Begin the restore process.

Call this function to start the reload of data from a persistent store. When the Topology_Loader detects a child object, it should call the load_child method of the object passed in, then do the same loading process on the returned object.

Implements TAO_Notify::Topology_Loader.

bool TAO_Notify::XML_Loader::open const ACE_TString file_name  ) 
 

Open a file and perform preliminary validation to determine whether the file is complete and valid.

virtual void TAO_Notify::XML_Loader::startElement const ACEXML_Char *  namespaceURI,
const ACEXML_Char *  localName,
const ACEXML_Char *  qName,
ACEXML_Attributes *atts  ACEXML_ENV_ARG_DECL
throw (ACEXML_SAXException) [virtual]
 


Member Data Documentation

ACE_TString TAO_Notify::XML_Loader::file_name_ [private]
 

The name of the file from which data is read.

FILE* TAO_Notify::XML_Loader::input_ [private]
 

A stream representing our current output.

bool TAO_Notify::XML_Loader::live_ [private]
 

TopoStack TAO_Notify::XML_Loader::object_stack_ [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 16:24:03 2005 for TAO_CosNotification by  doxygen 1.4.5