예제 #1
0
XERCES_CPP_NAMESPACE_BEGIN

// ---------------------------------------------------------------------------
//  XMLInitializer: Initialization methods
// ---------------------------------------------------------------------------
void XMLInitializer::InitializeAllStaticData()
{
    try {
        initializeMsgLoader4DOM();
        initializeDOMImplementationImpl();
        initializeDOMImplementationRegistry();
        initializeEmptyNodeList();
        initializeDOMNormalizerMsgLoader();
        initializeValidatorMsgLoader();
        initializeXSValueStatics();
        initializeScannerMsgLoader();
        initializeEncodingValidator();
        initializeExceptionMsgLoader();
        initializeDVFactory();
        initializeGeneralAttrCheckMap();
        initializeXSDErrReporterMsgLoader();
        initializeDTDGrammarDfltEntities();
        initializeRangeTokenMap();
        initializeRegularExpression();
        initializeAnyType();
    }
    catch(...) {
        XMLPlatformUtils::panic(PanicHandler::Panic_AllStaticInitErr);
    }
}
예제 #2
0
MATCH_CPP_NAMESPACE_BEGIN

// ---------------------------------------------------------------------------
//  XMLInitializer: Initialization methods
// ---------------------------------------------------------------------------
void XMLInitializer::initializeStaticData()
{
    try
    {
        // Note that in some cases the order of initialization can be
        // important.
        //

        // Core
        //
        initializeEncodingValidator();
        initializeXMLException();
        initializeXMLScanner();
        initializeXMLValidator();

        // Regex
        //
        initializeRangeTokenMap();
        initializeRegularExpression();

        // DTD
        //
        initializeDTDGrammar();

        // Schema
        //
        initializeXSDErrorReporter();
        initializeDatatypeValidatorFactory();
        initializeGeneralAttributeCheck();
        initializeXSValue();
        initializeComplexTypeInfo();

        // DOM
        //
        initializeDOMImplementationRegistry();
        initializeDOMImplementationImpl();
        initializeDOMDocumentTypeImpl();
        initializeDOMNodeListImpl();
        initializeDOMNormalizer();

        /////////////////////////////////////////////////自定义///////////////////////

        //match 自定义脚本扫描文件全局静态变量初始化方法
        initializeMatchScanner();

        //match 自定义脚本扫描文件全局静态变量初始化方法
        initializeMatchEventScanner();

        //match 自定义数据抽象类的全局静态变量初始化方法
        //initializeMyValue();

    
    
   //////////////////////////////////////////////////////自定义/////////////////////

    }
    catch(...) {
        XMLPlatformUtils::panic(PanicHandler::Panic_AllStaticInitErr);
    }
}