Locator_XMLHandler Class Reference

#include <Locator_XMLHandler.h>

Collaboration diagram for Locator_XMLHandler:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Vector< EnvVarEnvList

Public Member Functions

 Locator_XMLHandler (Callback &cb)
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 *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName ACEXML_ENV_ARG_DECL) throw (ACEXML_SAXException)

Static Public Attributes

const char * ROOT_TAG = "ImplementationRepository"
const char * SERVER_INFO_TAG = "Servers"
const char * ENVIRONMENT_TAG = "EnvironmentVariables"
const char * ACTIVATOR_INFO_TAG = "Activators"

Private Attributes

Callbackcallback_
ACE_CString server_name_
ACE_CString activator_name_
ACE_CString command_line_
ACE_CString activation_
ACE_CString working_dir_
ACE_CString server_object_ior_
ACE_CString partial_ior_
int start_limit_
EnvList env_vars_

Detailed Description

Callback SAX XML Handler for parsing XML.

Definition at line 26 of file Locator_XMLHandler.h.


Member Typedef Documentation

typedef ACE_Vector<EnvVar> Locator_XMLHandler::EnvList
 

Definition at line 43 of file Locator_XMLHandler.h.

Referenced by convertEnvList(), and Server_Repo_XML_Callback::next_server().


Constructor & Destructor Documentation

Locator_XMLHandler::Locator_XMLHandler Callback cb  ) 
 

Definition at line 13 of file Locator_XMLHandler.cpp.

00014 : callback_ (cb)
00015 {
00016 }


Member Function Documentation

void Locator_XMLHandler::endElement const ACEXML_Char *  namespaceURI,
const ACEXML_Char *  localName,
const ACEXML_Char *qName  ACEXML_ENV_ARG_DECL
throw (ACEXML_SAXException) [virtual]
 

Definition at line 70 of file Locator_XMLHandler.cpp.

References ACE_ASSERT, and ACE_OS::strcasecmp().

00074 {
00075   ACE_ASSERT(qName != 0);
00076   if (ACE_OS::strcasecmp (qName, SERVER_INFO_TAG) == 0
00077     && this->server_name_.length () > 0)
00078   {
00079     this->callback_.next_server (this->server_name_,
00080       this->activator_name_, this->command_line_,
00081       this->env_vars_, this->working_dir_, this->activation_,
00082       this->start_limit_, this->partial_ior_, this->server_object_ior_);
00083   }
00084   // activator info is handled in the startElement
00085 }

virtual void Locator_XMLHandler::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_CString Locator_XMLHandler::activation_ [private]
 

Definition at line 80 of file Locator_XMLHandler.h.

const char * Locator_XMLHandler::ACTIVATOR_INFO_TAG = "Activators" [static]
 

Definition at line 10 of file Locator_XMLHandler.cpp.

ACE_CString Locator_XMLHandler::activator_name_ [private]
 

Definition at line 78 of file Locator_XMLHandler.h.

Callback& Locator_XMLHandler::callback_ [private]
 

Definition at line 75 of file Locator_XMLHandler.h.

ACE_CString Locator_XMLHandler::command_line_ [private]
 

Definition at line 79 of file Locator_XMLHandler.h.

EnvList Locator_XMLHandler::env_vars_ [private]
 

Definition at line 85 of file Locator_XMLHandler.h.

const char * Locator_XMLHandler::ENVIRONMENT_TAG = "EnvironmentVariables" [static]
 

Definition at line 11 of file Locator_XMLHandler.cpp.

ACE_CString Locator_XMLHandler::partial_ior_ [private]
 

Definition at line 83 of file Locator_XMLHandler.h.

const char * Locator_XMLHandler::ROOT_TAG = "ImplementationRepository" [static]
 

Definition at line 8 of file Locator_XMLHandler.cpp.

const char * Locator_XMLHandler::SERVER_INFO_TAG = "Servers" [static]
 

Definition at line 9 of file Locator_XMLHandler.cpp.

ACE_CString Locator_XMLHandler::server_name_ [private]
 

Definition at line 77 of file Locator_XMLHandler.h.

ACE_CString Locator_XMLHandler::server_object_ior_ [private]
 

Definition at line 82 of file Locator_XMLHandler.h.

int Locator_XMLHandler::start_limit_ [private]
 

Definition at line 84 of file Locator_XMLHandler.h.

ACE_CString Locator_XMLHandler::working_dir_ [private]
 

Definition at line 81 of file Locator_XMLHandler.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:37:23 2006 for TAO_Implementation_Repository by doxygen 1.3.6