MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ParsePlainText

Method ParsePlainText

engine/Poseidon/IO/ParamFile/ParamFileParse.cpp:199–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197#define OUTPUT_PREPROC 0
198
199LSError ParamFile::ParsePlainText(const char* name)
200{
201 SetName(name);
202 if (!QIFStreamB::FileExist(name))
203 {
204 return LSOK;
205 }
206
207 QOStream out;
208 if (!Preprocess(out, name))
209 {
210 return LSStructure;
211 }
212 QIStream in;
213 in.init(out.str(), out.pcount());
214 ParsePlainText(in);
215#if DIAG_OPEN
216 if (_entries.Size() > 0)
217 {
218 ParamFileOpen++;
219 LOG_DEBUG(Core, "{}: Parsed paramfile {}", ParamFileOpen, name);
220 }
221#endif
222 return in.fail() ? in.error() : LSOK;
223}
224
225void ParamFile::ParsePlainText(QIStream& in)
226{

Callers 1

InitMethod · 0.80

Calls 15

GetWordFunction · 0.85
sprintfFunction · 0.85
ErrorMessageFunction · 0.85
strMethod · 0.80
pcountMethod · 0.80
initMethod · 0.45
SizeMethod · 0.45
failMethod · 0.45
errorMethod · 0.45
getMethod · 0.45
eofMethod · 0.45
ungetMethod · 0.45

Tested by

no test coverage detected