version 1.39, 2006/06/19 19:37:29
|
version 1.40, 2006/11/10 18:14:58
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
|
|
} | } |
*/ | */ |
| |
static MessageLoaderParms _formMessage(Uint32 code, Uint32 line, const String& message) |
static MessageLoaderParms _formMessage( |
|
Uint32 code, |
|
Uint32 line, |
|
const String& message) |
{ | { |
String dftMsg = _xmlMessages[Uint32(code) - 1]; | String dftMsg = _xmlMessages[Uint32(code) - 1]; |
String key = _xmlKeys[Uint32(code) - 1]; | String key = _xmlKeys[Uint32(code) - 1]; |
|
|
const String& message) | const String& message) |
: XmlException(XmlException::VALIDATION_ERROR, lineNumber, message) | : XmlException(XmlException::VALIDATION_ERROR, lineNumber, message) |
{ | { |
|
|
} | } |
| |
| |
|
|
MessageLoaderParms& msgParms) | MessageLoaderParms& msgParms) |
: XmlException(XmlException::VALIDATION_ERROR, lineNumber, msgParms) | : XmlException(XmlException::VALIDATION_ERROR, lineNumber, msgParms) |
{ | { |
|
|
} | } |
| |
| |
|
|
const String& message) | const String& message) |
: XmlException(XmlException::SEMANTIC_ERROR, lineNumber, message) | : XmlException(XmlException::SEMANTIC_ERROR, lineNumber, message) |
{ | { |
|
|
} | } |
| |
| |
|
|
MessageLoaderParms& msgParms) | MessageLoaderParms& msgParms) |
: XmlException(XmlException::SEMANTIC_ERROR, lineNumber, msgParms) | : XmlException(XmlException::SEMANTIC_ERROR, lineNumber, msgParms) |
{ | { |
|
|
} | } |
| |
| |
|
|
// | // |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
| |
XmlParser::XmlParser(char* text) : _line(1), _text(text), _current(text), |
XmlParser::XmlParser(char* text) |
_restoreChar('\0'), _foundRoot(false) |
: _line(1), |
|
_text(text), |
|
_current(text), |
|
_restoreChar('\0'), |
|
_foundRoot(false) |
{ | { |
|
|
} | } |
| |
inline void _skipWhitespace(Uint32& line, char*& p) | inline void _skipWhitespace(Uint32& line, char*& p) |