Hall-D Software
alpha
|
#include <XParsers.hpp>
Public Member Functions | |
MyEntityResolver (const XString &xmlFile) | |
~MyEntityResolver () | |
xercesc::InputSource * | resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId) |
std::vector< std::string > | GetXMLFilenames (void) |
std::string | GetMD5_checksum (void) |
Private Attributes | |
std::vector< std::string > | xml_filenames |
std::string | path |
Definition at line 83 of file XParsers.hpp.
MyEntityResolver::MyEntityResolver | ( | const XString & | xmlFile | ) |
Definition at line 310 of file XParsers.cpp.
References path, and xml_filenames.
MyEntityResolver::~MyEntityResolver | ( | ) |
Definition at line 324 of file XParsers.cpp.
std::string MyEntityResolver::GetMD5_checksum | ( | void | ) |
This will calculate an MD5 checksum using all of the files currently in the list of XML files. To do this, it opens each file and reads it in, in its entirety, updating the checksum as it goes. The checksum is returned as a hexadecimal string.
Definition at line 371 of file XParsers.cpp.
References last_md5_checksum, md5_append(), md5_finish(), md5_init(), sprintf(), and xml_filenames.
Referenced by parseInputDocument().
std::vector< std::string > MyEntityResolver::GetXMLFilenames | ( | void | ) |
Definition at line 363 of file XParsers.cpp.
References xml_filenames.
xercesc::InputSource * MyEntityResolver::resolveEntity | ( | const XMLCh *const | publicId, |
const XMLCh *const | systemId | ||
) |
This method gets called from the xerces parser each time it opens a file (except for the top-level file). For each of these, record the name of the file being opened, then just return NULL to have xerces handle opening the file in the normal way.
Definition at line 332 of file XParsers.cpp.
References path, string, and xml_filenames.
|
private |
Definition at line 96 of file XParsers.hpp.
Referenced by MyEntityResolver(), and resolveEntity().
|
private |
Definition at line 95 of file XParsers.hpp.
Referenced by GetMD5_checksum(), GetXMLFilenames(), MyEntityResolver(), and resolveEntity().