10 #ifndef CARMA_UTIL_IMRCONFIGHANDLERS_H
11 #define CARMA_UTIL_IMRCONFIGHANDLERS_H
13 #include <xercesc/sax/HandlerBase.hpp>
33 typedef std::map<SystemType, int> SystemTypeTotalsMap;
44 std::string directory;
50 typedef std::vector< ServerConfig > ServerVector;
61 typedef std::vector< OADConfig > OadVector;
68 unsigned nCriticalServers;
70 SystemTypeTotalsMap nServersByType;
112 xercesc::AttributeList & attributes );
127 void warning(
const xercesc::SAXParseException & exception );
132 void error(
const xercesc::SAXParseException & exception );
137 void fatalError(
const xercesc::SAXParseException & exception );
141 bool oadAlreadyExists(
const std::string & oad );
142 void appendExistingOad( );
void startDocument()
startDocument DocumentHandler overload
void endDocument()
endDocument DocumentHandler overload
Declares SAX Handlers for parsing XML Configuration files.
void error(const xercesc::SAXParseException &exception)
error SAX ErrorHandler implementation
Structure to hold oad which embeds servers.
~ImrConfigHandlers()
Destructor.
ImrConfigHandlers()
Constructor.
domainType parseXmlConfig(const ::std::string &xmlFilename, bool validateOnly, bool verbose)
Parse XML Configuration File and return a structure containing domain.
Structure to hold IMR server definition.
Domain structure - holds it all.
void fatalError(const xercesc::SAXParseException &exception)
fatalError SAX ErrorHandler implementation
domainType getDomain()
Retrieve reference to vector containing servers.
void startElement(const XMLCh *const name, xercesc::AttributeList &attributes)
startElement DocumentHandler overload
void warning(const xercesc::SAXParseException &exception)
warning SAX ErrorHandler implementation
void endElement(const XMLCh *const name)
endElement DocumentHandler overload
struct carma::util::domainStruct domainType
Domain structure - holds it all.