Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
RelaxNG.cpp File Reference
#include "precompiled.h"
#include "RelaxNG.h"
#include "lib/timer.h"
#include "lib/utf8.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/Filesystem.h"
#include <libxml/parser.h>
#include <libxml/relaxng.h>
#include <map>
#include <mutex>
#include <type_traits>
Include dependency graph for RelaxNG.cpp:

Classes

class  RelaxNGSchema
 

Functions

 TIMER_ADD_CLIENT (xml_validation)
 
void ClearSchemaCache ()
 There should be no references to validators or schemas outside of the cache anymore when calling this. More...
 
static void relaxNGErrorHandler (void *userData, std::conditional_t< LIBXML_VERSION >=21200, const xmlError, xmlError > *error)
 

Variables

static std::map< std::string, std::shared_ptr< RelaxNGSchema > > g_SchemaCache
 
static std::mutex g_SchemaCacheLock
 

Function Documentation

◆ ClearSchemaCache()

void ClearSchemaCache ( )

There should be no references to validators or schemas outside of the cache anymore when calling this.

◆ relaxNGErrorHandler()

static void relaxNGErrorHandler ( void *  userData,
std::conditional_t< LIBXML_VERSION >  = 21200,
const  xmlError,
xmlError  ,
error 
)
static

◆ TIMER_ADD_CLIENT()

TIMER_ADD_CLIENT ( xml_validation  )

Variable Documentation

◆ g_SchemaCache

std::map<std::string, std::shared_ptr<RelaxNGSchema> > g_SchemaCache
static

◆ g_SchemaCacheLock

std::mutex g_SchemaCacheLock
static