Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RelaxNGValidator Class Reference

#include <RelaxNG.h>

Collaboration diagram for RelaxNGValidator:

Public Member Functions

 RelaxNGValidator ()
 
 ~RelaxNGValidator ()
 
bool LoadGrammar (const std::string &grammar)
 
bool LoadGrammarFile (const PIVFS &vfs, const VfsPath &grammarPath)
 
MD5 GetGrammarHash () const
 
bool Validate (const std::string &filename, const std::string &document) const
 
bool ValidateEncoded (const std::string &filename, const std::string &document) const
 
bool ValidateEncoded (xmlDocPtr doc) const
 
bool CanValidate () const
 

Private Attributes

MD5 m_Hash
 
xmlRelaxNGPtr m_Schema
 

Constructor & Destructor Documentation

◆ RelaxNGValidator()

RelaxNGValidator::RelaxNGValidator ( )

◆ ~RelaxNGValidator()

RelaxNGValidator::~RelaxNGValidator ( )

Member Function Documentation

◆ CanValidate()

bool RelaxNGValidator::CanValidate ( ) const

◆ GetGrammarHash()

MD5 RelaxNGValidator::GetGrammarHash ( ) const
inline

◆ LoadGrammar()

bool RelaxNGValidator::LoadGrammar ( const std::string &  grammar)

◆ LoadGrammarFile()

bool RelaxNGValidator::LoadGrammarFile ( const PIVFS vfs,
const VfsPath grammarPath 
)

◆ Validate()

bool RelaxNGValidator::Validate ( const std::string &  filename,
const std::string &  document 
) const

◆ ValidateEncoded() [1/2]

bool RelaxNGValidator::ValidateEncoded ( const std::string &  filename,
const std::string &  document 
) const

◆ ValidateEncoded() [2/2]

bool RelaxNGValidator::ValidateEncoded ( xmlDocPtr  doc) const

Member Data Documentation

◆ m_Hash

MD5 RelaxNGValidator::m_Hash
private

◆ m_Schema

xmlRelaxNGPtr RelaxNGValidator::m_Schema
private

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