#include <ExodusFormatter.h>
Public Member Functions | |
ExodusFormatter () | |
void | printInputFile (ActionWarehouse &wh) |
void | format () |
std::vector< std::string > & | getInputFileRecord () |
virtual std::string | printBlockOpen (const std::string &name, short depth, const std::string &) override |
This method is called at the beginning of each Node in the tree. More... | |
virtual std::string | printBlockClose (const std::string &name, short depth) const override |
This method is called at the end of of each Node in the tree. More... | |
virtual std::string | printParams (const std::string &prefix, const std::string &fully_qualified_name, InputParameters ¶ms, short depth, const std::string &search_string, bool &found) override |
This function is called for each InputParameters object stored at a particular node. More... | |
void | insertNode (std::string syntax, const std::string &action, bool is_action_params=true, InputParameters *params=NULL) |
std::string | print (const std::string &search_string) |
void | seenIt (const std::string &prefix, const std::string &item) |
bool | haveSeenIt (const std::string &prefix, const std::string &item) const |
virtual std::string | preamble () const |
This method is called once at the beginning of the tree traversal and can be used to build up header information. More... | |
virtual std::string | postscript () const |
This method is called once at the end of the tree traversal and can be used to add any necessary trailing information to the final formatted string. More... | |
virtual std::string | preTraverse (short) const |
This method is called once at each node in the syntax tree before traversing child nodes. More... | |
Protected Member Functions | |
bool | isLongNames () const |
Protected Attributes | |
std::stringstream | _ss |
std::vector< std::string > | _input_file_record |
bool | _dump_mode |
TreeNode * | _root |
bool | _use_long_names |
Definition at line 15 of file ExodusFormatter.h.
ExodusFormatter::ExodusFormatter | ( | ) |
Definition at line 23 of file ExodusFormatter.C.
void ExodusFormatter::format | ( | ) |
Definition at line 49 of file ExodusFormatter.C.
Referenced by Exodus::outputInput().
|
inline |
Definition at line 24 of file ExodusFormatter.h.
Referenced by Exodus::outputInput().
|
inherited |
Definition at line 63 of file SyntaxTree.C.
Referenced by InputFileFormatter::printParams(), and YAMLFormatter::printParams().
|
inherited |
Definition at line 27 of file SyntaxTree.C.
Referenced by ActionWarehouse::printInputFile().
|
protectedinherited |
Definition at line 236 of file SyntaxTree.C.
|
inlinevirtualinherited |
This method is called once at the end of the tree traversal and can be used to add any necessary trailing information to the final formatted string.
Reimplemented in YAMLFormatter.
Definition at line 46 of file SyntaxFormatterInterface.h.
Referenced by SyntaxTree::print().
|
inlinevirtualinherited |
This method is called once at the beginning of the tree traversal and can be used to build up header information.
Reimplemented in YAMLFormatter.
Definition at line 38 of file SyntaxFormatterInterface.h.
Referenced by SyntaxTree::print().
|
inlinevirtualinherited |
This method is called once at each node in the syntax tree before traversing child nodes.
Reimplemented in YAMLFormatter.
Definition at line 52 of file SyntaxFormatterInterface.h.
|
inherited |
Definition at line 39 of file SyntaxTree.C.
Referenced by ActionWarehouse::printInputFile().
|
overridevirtualinherited |
This method is called at the end of of each Node in the tree.
It is typically used to provide formatting necessary when closing blocks.
Implements SyntaxFormatterInterface.
Definition at line 34 of file InputFileFormatter.C.
|
overridevirtualinherited |
This method is called at the beginning of each Node in the tree.
It is typically used to provide formatting necessary when opening new blocks.
Implements SyntaxFormatterInterface.
Definition at line 20 of file InputFileFormatter.C.
void ExodusFormatter::printInputFile | ( | ActionWarehouse & | wh | ) |
Definition at line 26 of file ExodusFormatter.C.
Referenced by Exodus::outputInput().
|
overridevirtualinherited |
This function is called for each InputParameters object stored at a particular node.
It is responsible for formatting the parameters for the current node.
Implements SyntaxFormatterInterface.
Definition at line 46 of file InputFileFormatter.C.
|
inherited |
Definition at line 57 of file SyntaxTree.C.
Referenced by InputFileFormatter::printParams(), and YAMLFormatter::printParams().
|
protectedinherited |
Definition at line 35 of file InputFileFormatter.h.
Referenced by InputFileFormatter::printParams().
|
protected |
Definition at line 28 of file ExodusFormatter.h.
Referenced by format(), and getInputFileRecord().
|
protectedinherited |
Definition at line 75 of file SyntaxTree.h.
Referenced by SyntaxTree::insertNode(), SyntaxTree::print(), and SyntaxTree::~SyntaxTree().
|
protected |
Definition at line 27 of file ExodusFormatter.h.
Referenced by format(), and printInputFile().
|
protectedinherited |
Definition at line 76 of file SyntaxTree.h.
Referenced by SyntaxTree::isLongNames().