X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fparsermode.h;h=339bdb78e4bc66536dab675a0517fc748a9a5824;hb=215e719d0ef85f748898660d15d01e77ac551de9;hp=824525d66aeeddaa0347e1848b18f409d8e82f91;hpb=27630d44298cb67e075c166f4421288cc8ca117e;p=libs%2Fdatafile.git diff --git a/source/parsermode.h b/source/parsermode.h index 824525d..339bdb7 100644 --- a/source/parsermode.h +++ b/source/parsermode.h @@ -15,17 +15,20 @@ namespace DataFile { class Input; +/** +Base class for parse modes. +*/ class ParserMode { protected: Input ∈ - std::string src; + const std::string &src; ParserMode(Input &i, const std::string &s): in(i), src(s) { } public: virtual ~ParserMode() { } - virtual Statement parse() =0; + virtual Statement parse() = 0; }; } // namespace DataFile