MCPcopy Create free account
hub / github.com/catboost/catboost / TEnumParser

Method TEnumParser

tools/enum_parser/parse_enum/parse_enum.cpp:391–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389};
390
391TEnumParser::TEnumParser(const TString& fileName) {
392 THolder<IInputStream> hIn;
393 IInputStream* in = nullptr;
394 if (fileName != "-") {
395 SourceFileName = fileName;
396 hIn.Reset(new TFileInput(fileName));
397 in = hIn.Get();
398 } else {
399 in = &Cin;
400 }
401
402 TString contents = in->ReadAll();
403 Parse(contents.data(), contents.size());
404}
405
406TEnumParser::TEnumParser(const char* data, size_t length) {
407 Parse(data, length);

Callers

nothing calls this directly

Calls 6

ReadAllMethod · 0.80
ParseFunction · 0.50
ResetMethod · 0.45
GetMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected