MCPcopy Create free account
hub / github.com/Gusabary/FlowChar / CodeParser

Method CodeParser

src/codeParser.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace FC { namespace FE {
8
9CodeParser::CodeParser(const std::string &path) {
10 this->fs = std::fstream();
11 this->fs.open(path.c_str(), std::fstream::in);
12 if (!this->fs.is_open()) {
13 std::cout << "[Error] code file open failed." << std::endl;
14 exit(-1);
15 }
16}
17
18CodeParser::~CodeParser() {
19 this->fs.close();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected