Fission FSN
Loading...
Searching...
No Matches
fsCStringsFile.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 16/9/2014 10:00
4*
5* File: fsCStringsFile.h
6*
7* Author: Martin P. King
8*
9* Purpose: Convert the XML strings to simple VariableTable
10* strings
11*
12*********************************************************************/
13
14#ifndef fsCStringsFilehdr
15#define fsCStringsFilehdr
16
17#include <vector>
18
19#include <fsCore/fsBaseTypes.h>
20#include <fsCore/fsStr.h>
21
22#include "fsCVariableTable.h"
23
25
27{
28public:
29
30 static const fsStr mRowOpenTag;
31 static const fsStr mRowCloseTag;
32 static const fsStr mCellOpenTag;
33 static const fsStr mCellCloseTag;
36 static const fsStr mEllipsisChar;
37
38 static fsBool nextKeyGet(fsStr& pOutStr, std::vector<fsStr>& pLines, std::vector<fsStr>::iterator& pLine);
39 static fsBool nextValueGet(fsStr& pOutStr, std::vector<fsStr>& pLines, std::vector<fsStr>::iterator& pLine);
40
41 void read();
42 void write();
43
44 virtual ~fsCStringsFile();
45
46protected:
47
49
50 void read(const fsStr& pFileName, fsCVariableTable* pStrings);
51
52private:
53
54 fsStr mSrcFilename;
55 fsStr mOutPath;
56};
57
58#endif
fsCStringsFile()
Definition fsCStringsFile.cpp:162
static fsBool nextKeyGet(fsStr &pOutStr, std::vector< fsStr > &pLines, std::vector< fsStr >::iterator &pLine)
Definition fsCStringsFile.cpp:45
static const fsStr mCellOpenTag
Definition fsCStringsFile.h:32
static const fsStr mStringPropertyTag
Definition fsCStringsFile.h:34
static const fsStr mEllipsisChar
Definition fsCStringsFile.h:36
static const fsStr mRowCloseTag
Definition fsCStringsFile.h:31
virtual ~fsCStringsFile()
Definition fsCStringsFile.cpp:167
void read()
Definition fsCStringsFile.cpp:17
void write()
Definition fsCStringsFile.cpp:152
static const fsStr mCellCloseTag
Definition fsCStringsFile.h:33
static fsBool nextValueGet(fsStr &pOutStr, std::vector< fsStr > &pLines, std::vector< fsStr >::iterator &pLine)
Definition fsCStringsFile.cpp:71
static const fsStr mRowOpenTag
Definition fsCStringsFile.h:30
static const fsStr mNumberPropertyTag
Definition fsCStringsFile.h:35
Definition fsCVariableTable.h:27
fsCVariableTable()
Definition fsCVariableTable.cpp:332
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26