TAO_Implementation_Repository 4.0.3
Loading...
Searching...
No Matches
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
 
virtual void endElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName)
 provide implementation for handling terminating an XML element
 
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
 
ACE_Vector< ACE_TStringfilenames_
 the filenames identified in the listings file (or the new filenames)
 
Locator_Repository::SIMap unmatched_servers_
 
Locator_Repository::AIMap unmatched_activators_
 
const bool only_changes_
 indicates if only changes should be tracked
 

Detailed Description

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

Constructor & Destructor Documentation

◆ LocatorListings_XMLHandler() [1/2]

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

constructor

Parameters
dirthe directory path to add to the server or activator filename

◆ LocatorListings_XMLHandler() [2/2]

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

◆ endElement()

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

◆ filenames()

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

◆ remove_unmatched()

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)

◆ startElement()

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

◆ dir_

const ACE_TString& Shared_Backing_Store::LocatorListings_XMLHandler::dir_
private

the directory to add to the listings file relative filenames

◆ filenames_

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

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

◆ only_changes_

const bool Shared_Backing_Store::LocatorListings_XMLHandler::only_changes_
private

indicates if only changes should be tracked

◆ unmatched_activators_

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

◆ unmatched_servers_

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: