return "on line "+std::to_string(d_filestates.top().d_lineno)+" of file '"+d_filestates.top().d_filename+"'";
}
+pair<string,int> ZoneParserTNG::getLineNumAndFile()
+{
+ return {d_filestates.top().d_filename, d_filestates.top().d_lineno};
+}
+
// ODD: this function never fills out the prio field! rest of pdns compensates though
bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment)
{
typedef runtime_error exception;
typedef deque<pair<string::size_type, string::size_type> > parts_t;
DNSName getZoneName();
- string getLineOfFile();
+ string getLineOfFile(); // for error reporting purposes
+ pair<string,int> getLineNumAndFile(); // idem
private:
bool getLine();
bool getTemplateLine();