60 std::list<TokenClass>::iterator& iter,
61 std::list<TokenClass>& tokenList,
78 bool NewFile(std::string fileName, std::string mySectionName,
IOTreeClass* parent)
override;
bool ReadSection(IOTreeClass *parent, std::string name, std::list< TokenClass >::iterator &iter, std::list< TokenClass > &tokenList, bool wantEndBrace)
Reads a section from a list of TokenClass objects.
void PrintTree() override
Same thing, just calls above with level 0;.
void WriteSection(std::ofstream &outFile, int indent)
bool OpenFile(std::string filename, std::string myName, IOTreeClass *parent) override
Takes the name of a file to read, the name of my section and a pointer to my parent.
bool NewFile(std::string fileName, std::string mySectionName, IOTreeClass *parent) override
This class stores a tree of input file sections.
IOTreeClass * NewSection(std::string name) override
Write me!
bool ReadWithoutComments(std::string fileName, Array< char, 1 > &buffer)
Reads a text file into a buffer eliminating c++ and c-style comments.
This class holds an ASCII token, which is just a std::string and the line number in which it appeared...
IOFileType GetFileType() override
void IncludeSection(IOTreeClass *) override
Inserts a new Include directive in the present section.
void CloseFile() override
Do any file handling necessary and delete the whole tree of data.
A D-dimensional Array class based on PETE.
This is the ASCII specialization of IOTreeClass for ASCII text files.
void FlushFile() override