All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
// MessageParsers.h
|
|
// Declaration of class cMessageParser - base class for parsing the
|
|
// XML Schema
|
|
|
|
#ifndef __MESSAGEPARSERS_H
|
|
#define __MESSAGEPARSERS_H
|
|
|
|
#include "Message.h"
|
|
|
|
class cElementParser
|
|
{
|
|
public:
|
|
class cContext
|
|
{
|
|
cContext *m_pParent;
|
|
cMessage::cElementList *m_pElements;
|
|
DWORD m_dwStartOffset;
|
|
|
|
public:
|
|
cContext( cMessage::cElementList *pElements, cContext *pParent = NULL )
|
|
: m_pParent( pParent ),
|
|
m_pElements( pElements ),
|
|
m_dwStartOffset( pElements->size() )
|
|
{
|
|
}
|
|
|
|
cMessage::cMessageElement *findElement( const _bstr_t &strElement );
|
|
bool parseChildren( MSXML::IXMLDOMElementPtr &pElement );
|
|
bool parseChildren( cMessage::cElementList &elements, MSXML::IXMLDOMElementPtr &pElement );
|
|
|
|
static _bstr_t g_strAll;
|
|
};
|
|
|
|
virtual cMessage::cMessageElement *parse( cContext &context, MSXML::IXMLDOMElementPtr &pElement ) = 0;
|
|
|
|
static cElementParser *lookup( const _bstr_t &strElement );
|
|
|
|
static void init();
|
|
static void term();
|
|
|
|
private:
|
|
static void addParser( LPCTSTR szElement, cElementParser *pParser );
|
|
|
|
typedef std::map< _bstr_t, VSBridge::auto_ptr< cElementParser > > cElementParserMap;
|
|
static cElementParserMap g_parsers;
|
|
};
|
|
|
|
#endif
|