TAO_CosNotification
2.4.1
|
Load Notification Service Topology from an XML file. More...
#include <XML_Loader.h>
Public Member Functions | |
XML_Loader () | |
The constructor. More... | |
virtual | ~XML_Loader () |
bool | open (const ACE_TString &file_name) |
virtual void | load (Topology_Object *root) |
Begin the restore process. More... | |
virtual void | startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *atts) |
virtual void | endElement (const ACEXML_Char *, const ACEXML_Char *, const ACEXML_Char *name) |
Public Member Functions inherited from TAO_Notify::Topology_Loader | |
Topology_Loader () | |
The constructor. More... | |
virtual | ~Topology_Loader () |
The destructor. More... | |
virtual void | close (void) |
Close the loader after loading is complete. More... | |
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. More... | |
TopoStack | object_stack_ |
bool | live_ |
If false, then we're just checking syntax of topology file. More... | |
Load Notification Service Topology from an XML file.
|
private |
TAO_Notify::XML_Loader::XML_Loader | ( | ) |
The constructor.
|
virtual |
|
virtual |
|
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 |
|
private |
The name of the file from which data is read.
|
private |
If false, then we're just checking syntax of topology file.
|
private |