void stackFile(const std::string& fname);
unsigned makeTTLFromZone(const std::string& str);
string getLineOfFile();
+ struct filestate {
+ filestate(FILE* fp, string filename) : d_fp(fp), d_filename(filename), d_lineno(0){}
+ FILE *d_fp;
+ string d_filename;
+ int d_lineno;
+ };
+
string d_reldir;
string d_line;
string d_prevqname;
string d_zonename;
+ string d_templateline;
vector<string> d_zonedata;
vector<string>::iterator d_zonedataline;
+ std::stack<filestate> d_filestates;
+ parts_t d_templateparts;
int d_defaultttl;
+ uint32_t d_templatecounter, d_templatestop, d_templatestep;
bool d_havedollarttl;
bool d_fromfile;
- uint32_t d_templatecounter, d_templatestop, d_templatestep;
- string d_templateline;
- parts_t d_templateparts;
-
- struct filestate {
- filestate(FILE* fp, string filename) : d_fp(fp), d_filename(filename), d_lineno(0){}
- FILE *d_fp;
- string d_filename;
- int d_lineno;
- };
- std::stack<filestate> d_filestates;
};
#endif