TAO_Implementation_Repository  2.3.3
Public Member Functions | Private Attributes | List of all members
Shared_Backing_Store::LocatorListings_XMLHandler Class Reference
Inheritance diagram for Shared_Backing_Store::LocatorListings_XMLHandler:
Inheritance graph
[legend]
Collaboration diagram for Shared_Backing_Store::LocatorListings_XMLHandler:
Collaboration graph
[legend]

Public Member Functions

 LocatorListings_XMLHandler (const ACE_TString &dir)
 
 LocatorListings_XMLHandler (const ACE_TString &dir, const Locator_Repository::SIMap &servers, const Locator_Repository::AIMap &activators)
 
virtual void startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *attrs)
 provide implementation for handling a new XML element More...
 
virtual void endElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName)
 provide implementation for handling terminating an XML element More...
 
void remove_unmatched (Locator_Repository &repo)
 
const ACE_Vector< ACE_TString > & filenames () const
 

Private Attributes

const ACE_TStringdir_
 the directory to add to the listings file relative filenames More...
 
ACE_Vector< ACE_TStringfilenames_
 the filenames identified in the listings file (or the new filenames) More...
 
Locator_Repository::SIMap unmatched_servers_
 
Locator_Repository::AIMap unmatched_activators_
 
const bool only_changes_
 indicates if only changes should be tracked More...
 

Detailed Description

Callback SAX XML Handler for parsing the imr_listings.xml file.

Constructor & Destructor Documentation

Shared_Backing_Store::LocatorListings_XMLHandler::LocatorListings_XMLHandler ( const ACE_TString dir)

constructor

Parameters
dirthe directory path to add to the server or activator filename
Shared_Backing_Store::LocatorListings_XMLHandler::LocatorListings_XMLHandler ( const ACE_TString dir,
const Locator_Repository::SIMap servers,
const Locator_Repository::AIMap activators 
)

constructor for tracking only changes to what servers and activators are currently in the repo

Parameters
dirthe directory path to add to the server or activator filename
serversa map of servers currently in the repo
activatorsa map of activators currently in the repo

Member Function Documentation

void Shared_Backing_Store::LocatorListings_XMLHandler::endElement ( const ACEXML_Char *  namespaceURI,
const ACEXML_Char *  localName,
const ACEXML_Char *  qName 
)
virtual

provide implementation for handling terminating an XML element

const ACE_Vector< ACE_TString > & Shared_Backing_Store::LocatorListings_XMLHandler::filenames ( ) const

the filenames identified in the listings file, if tracking changes only then only the filenames of the new servers and activators

void Shared_Backing_Store::LocatorListings_XMLHandler::remove_unmatched ( Locator_Repository repo)

remove the servers and activators that were in the repo but not in the listings file (this does nothing if existing servers and activators were not provided in constructor)

void Shared_Backing_Store::LocatorListings_XMLHandler::startElement ( const ACEXML_Char *  namespaceURI,
const ACEXML_Char *  localName,
const ACEXML_Char *  qName,
ACEXML_Attributes *  attrs 
)
virtual

provide implementation for handling a new XML element

Member Data Documentation

const ACE_TString& Shared_Backing_Store::LocatorListings_XMLHandler::dir_
private

the directory to add to the listings file relative filenames

ACE_Vector<ACE_TString> Shared_Backing_Store::LocatorListings_XMLHandler::filenames_
private

the filenames identified in the listings file (or the new filenames)

const bool Shared_Backing_Store::LocatorListings_XMLHandler::only_changes_
private

indicates if only changes should be tracked

Locator_Repository::AIMap Shared_Backing_Store::LocatorListings_XMLHandler::unmatched_activators_
private

the existing activators in the repo that were not present in the listings file

Locator_Repository::SIMap Shared_Backing_Store::LocatorListings_XMLHandler::unmatched_servers_
private

the existing servers in the repo that were not present in the listings file


The documentation for this class was generated from the following files: