|
void | WriteSection (std::ofstream &outFile, int indent) |
|
IOFileType | GetFileType () override |
|
void | PrintTree (int level) override |
| Print an indented tree of section variable names. More...
|
|
void | PrintTree () override |
| Same thing, just calls above with level 0;. More...
|
|
IOTreeClass * | NewSection (std::string name) override |
| Write me! More...
|
|
void | IncludeSection (IOTreeClass *) override |
| Inserts a new Include directive in the present section. More...
|
|
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. More...
|
|
bool | NewFile (std::string fileName, std::string mySectionName, IOTreeClass *parent) override |
|
void | CloseFile () override |
| Do any file handling necessary and delete the whole tree of data. More...
|
|
void | FlushFile () override |
|
| IOTreeASCIIClass () |
|
void | MarkModified () |
|
void | InsertSection (IOTreeClass *newSec) |
|
bool | FindSection (std::string name, IOTreeClass *§ionPtr, int num=0) |
| FindSection locates a subsection with the given name within the section in contains and returns it in the pointer, sectionPtr, which is passed a reference. More...
|
|
int | CountSections (std::string name) |
| Returns the number of subsections with the given name within the present section. More...
|
|
int | CountVars () |
|
template<class T > |
bool | ReadVar (std::string name, T &var) |
|
IOVarBase * | GetVarPtr (std::string name) |
|
IOVarBase * | GetVarPtr (int num) |
|
template<typename T > |
bool | WriteVar (std::string name, T val) |
| These create a new variable with the given name and value: More...
|
|
template<typename T , int LEN> |
bool | WriteVar (std::string name, const TinyVector< T, LEN > &val) |
|
template<typename T , int RANK> |
bool | WriteVar (std::string name, const Array< T, RANK > &val) |
|
template<typename T , int RANK, int LEN> |
bool | WriteVar (std::string name, const Array< TinyVector< T, LEN >, RANK > &val) |
|
template<class T > |
bool | AppendVar (std::string name, T val) |
| Append a value to a variable of dimension of 1 higher than val. More...
|
|
void | SetUnderscores (bool use) |
|
| IOTreeClass () |
|
virtual | ~IOTreeClass () |
|
template<> |
bool | WriteVar (std::string name, const char *val) |
|
This is the ASCII specialization of IOTreeClass for ASCII text files.
It's syntax is as follows: Section (SectionName) { double x = 3; blitz::Array<int,1> y(3) = [1, 2, 3]; blitz::Array<int,3> z(2,2,1) = [ 1, 2, 3, 4 ]; Section (Species, "species1.h5"); }
Definition at line 48 of file IOASCII.h.