EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DecodeGenerator.h
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24 */
25 
26 #ifndef __DECODEGENERATOR_H_INCL__
27 #define __DECODEGENERATOR_H_INCL__
28 
29 #include "Generator.h"
30 
32 : public Generator
33 {
34 public:
35  ClassDecodeGenerator( FILE* outputFile = NULL );
36 
37 protected:
38  const char* top() const { return mVariableStack.top().c_str(); }
39  void pop() { mVariableStack.pop(); }
40  void push(const char* v) { mVariableStack.push( v ); }
41 
42  bool ProcessElementDef( const TiXmlElement* field );
43  bool ProcessElement( const TiXmlElement* field );
44  bool ProcessElementPtr( const TiXmlElement* field );
45 
46  bool ProcessRaw( const TiXmlElement* field );
47  bool ProcessInt( const TiXmlElement* field );
48  bool ProcessLong( const TiXmlElement* field );
49  bool ProcessReal( const TiXmlElement* field );
50  bool ProcessBool( const TiXmlElement* field );
51  bool ProcessNone( const TiXmlElement* field );
52  bool ProcessBuffer( const TiXmlElement* field );
53 
54  bool ProcessString( const TiXmlElement* field );
55  bool ProcessStringInline( const TiXmlElement* field );
56  bool ProcessWString( const TiXmlElement* field );
57  bool ProcessWStringInline( const TiXmlElement* field );
58  bool ProcessToken( const TiXmlElement* field );
59  bool ProcessTokenInline( const TiXmlElement* field );
60 
61  bool ProcessObject( const TiXmlElement* field );
62  bool ProcessObjectInline( const TiXmlElement* field );
63  bool ProcessObjectEx( const TiXmlElement* field );
64 
65  bool ProcessTuple( const TiXmlElement* field );
66  bool ProcessTupleInline( const TiXmlElement* field );
67  bool ProcessList( const TiXmlElement* field );
68  bool ProcessListInline( const TiXmlElement* field );
69  bool ProcessListInt( const TiXmlElement* field );
70  bool ProcessListLong( const TiXmlElement* field );
71  bool ProcessListStr( const TiXmlElement* field );
72  bool ProcessDict( const TiXmlElement* field );
73  bool ProcessDictInline( const TiXmlElement* field );
74  bool ProcessDictRaw( const TiXmlElement* field );
75  bool ProcessDictInt( const TiXmlElement* field );
76  bool ProcessDictStr( const TiXmlElement* field );
77 
78  bool ProcessSubStreamInline( const TiXmlElement* field );
79  bool ProcessSubStructInline( const TiXmlElement* field );
80 
81 private:
82  const char* mName;
83  std::stack<std::string> mVariableStack;
85 };
86 
87 
88 #endif
bool ProcessElementDef(const TiXmlElement *field)
bool ProcessObjectEx(const TiXmlElement *field)
bool ProcessSubStreamInline(const TiXmlElement *field)
bool ProcessRaw(const TiXmlElement *field)
bool ProcessDictRaw(const TiXmlElement *field)
bool ProcessListStr(const TiXmlElement *field)
bool ProcessBuffer(const TiXmlElement *field)
bool ProcessReal(const TiXmlElement *field)
void push(const char *v)
bool ProcessObjectInline(const TiXmlElement *field)
bool ProcessListInt(const TiXmlElement *field)
ClassDecodeGenerator(FILE *outputFile=NULL)
bool ProcessWStringInline(const TiXmlElement *field)
bool ProcessDict(const TiXmlElement *field)
std::stack< std::string > mVariableStack
bool ProcessListInline(const TiXmlElement *field)
bool ProcessLong(const TiXmlElement *field)
bool ProcessDictInline(const TiXmlElement *field)
bool ProcessNone(const TiXmlElement *field)
bool ProcessElementPtr(const TiXmlElement *field)
bool ProcessElement(const TiXmlElement *field)
bool ProcessString(const TiXmlElement *field)
bool ProcessListLong(const TiXmlElement *field)
unsigned __int32 uint32
Definition: eve-compat.h:50
bool ProcessTuple(const TiXmlElement *field)
bool ProcessInt(const TiXmlElement *field)
const char * top() const
bool ProcessBool(const TiXmlElement *field)
bool ProcessDictInt(const TiXmlElement *field)
bool ProcessTokenInline(const TiXmlElement *field)
Generic class for eve-xmlpktgen's generators.
Definition: Generator.h:37
bool ProcessList(const TiXmlElement *field)
bool ProcessStringInline(const TiXmlElement *field)
bool ProcessWString(const TiXmlElement *field)
bool ProcessSubStructInline(const TiXmlElement *field)
bool ProcessTupleInline(const TiXmlElement *field)
bool ProcessObject(const TiXmlElement *field)
bool ProcessDictStr(const TiXmlElement *field)
bool ProcessToken(const TiXmlElement *field)