Fission
FSN
Loading...
Searching...
No Matches
gameModules
gfCatalogue
src
gfCCatalogueParserYaml.h
Go to the documentation of this file.
1
/********************************************************************
2
*
3
* File: gfCCatalogueParserYaml.h
4
*
5
* Purpose: Parse the catalogue data file
6
*
7
*********************************************************************/
8
9
#ifndef gfCCatalogueParserYamlhdr
10
#define gfCCatalogueParserYamlhdr
11
12
#include <map>
13
#include "
../gfICatalogueParser.h
"
14
15
class
gfICatalogueEntry
;
16
class
gfCCatalogueCatalogue
;
17
class
fsCVariableTable
;
18
19
namespace
YAML
{
20
class
Node;
21
};
22
23
class
gfCCatalogueParserYaml
:
public
gfICatalogueParser
24
{
25
public
:
26
27
gfCCatalogueCatalogue
*
const
catalogueLoad
(
const
fsStr
& pFileName)
override
;
28
29
gfCCatalogueParserYaml
();
30
virtual
~gfCCatalogueParserYaml
();
31
32
protected
:
33
34
35
void
categoryLoad
(
gfCCatalogueCatalogue
* pCatalogue,
const
fsStr
& pParentCategory,
const
fsStr
& pFileName);
36
37
private
:
38
39
struct
SSettings
40
{
41
fsStr
mIconFileBase;
42
fsStr
mImageFileBase;
43
fsStr
mDefaultAction;
44
fsStr
mDefaultType;
45
};
46
47
void
entriesCreate(
gfCCatalogueCatalogue
* pCatalogue,
const
fsStr
& pParentCategory,
48
fsCVariableTable
* pVarTable,
const
SSettings& pSettings);
49
static
fsBool
itemCreate(
gfCCatalogueCatalogue
* pCatalogue,
const
fsStr
& pParentCategory,
50
fsCVariableTable
* pVarTable,
const
SSettings& pSettings,
fsS32
pIndex);
51
static
void
graphicFileBasesGet(
fsCVariableTable
* pVarTable, SSettings& pSettings);
52
static
fsStr
extensionAdd(
const
fsStr
& pFilename);
53
54
std::map<std::string, std::string> flatten(
const
YAML::Node& node);
55
};
56
57
#endif
fsCVariableTable
Definition
fsCVariableTable.h:27
fsStr
Definition
fsStr.h:23
gfCCatalogueCatalogue
Definition
gfCCatalogueCatalogue.h:17
gfCCatalogueParserYaml::gfCCatalogueParserYaml
gfCCatalogueParserYaml()
Definition
gfCCatalogueParserYaml.cpp:222
gfCCatalogueParserYaml::~gfCCatalogueParserYaml
virtual ~gfCCatalogueParserYaml()
Definition
gfCCatalogueParserYaml.cpp:226
gfCCatalogueParserYaml::catalogueLoad
gfCCatalogueCatalogue *const catalogueLoad(const fsStr &pFileName) override
Definition
gfCCatalogueParserYaml.cpp:45
gfCCatalogueParserYaml::categoryLoad
void categoryLoad(gfCCatalogueCatalogue *pCatalogue, const fsStr &pParentCategory, const fsStr &pFileName)
Definition
gfCCatalogueParserYaml.cpp:125
gfICatalogueEntry
Definition
gfICatalogueEntry.h:18
gfICatalogueParser::gfICatalogueParser
gfICatalogueParser()
Definition
gfICatalogueParser.h:30
gfICatalogueParser.h
fsBool
bool fsBool
Definition
fsBaseTypes.h:26
fsS32
int fsS32
Definition
fsBaseTypes.h:20
YAML
Definition
gfCCatalogueParserYaml.h:19
Generated on
for Fission by
1.16.1