Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyEntityResolver Class Reference

#include <XParsers.hpp>

+ Inheritance diagram for MyEntityResolver:

Public Member Functions

 MyEntityResolver (const XString &xmlFile)
 
 ~MyEntityResolver ()
 
xercesc::InputSource * resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId)
 
std::vector< std::stringGetXMLFilenames (void)
 
std::string GetMD5_checksum (void)
 

Private Attributes

std::vector< std::stringxml_filenames
 
std::string path
 

Detailed Description

Definition at line 83 of file XParsers.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

std::string MyEntityResolver::path
private

Definition at line 96 of file XParsers.hpp.

Referenced by MyEntityResolver(), and resolveEntity().

std::vector<std::string> MyEntityResolver::xml_filenames
private

Definition at line 95 of file XParsers.hpp.

Referenced by GetMD5_checksum(), GetXMLFilenames(), MyEntityResolver(), and resolveEntity().


The documentation for this class was generated from the following files: