#include <InputHandler.h>
Inheritance diagram for InputHandler:
Public Member Functions | |
InputHandler (int, char **) | |
~InputHandler () | |
void | init () |
void | initParamsFromDOM () |
string | getGreenPlugin () |
string | getGreenPlugin (string) |
string | getLoadPlugin () |
string | getLoadPlugin (string) |
string | getLoadHistoryPlugin () |
string | getLoadHistoryPlugin (string) |
string | getKernelPlugin () |
string | getKernelPlugin (string) |
string | getOutputPlugin () |
string | getOutputPlugin (string) |
string | getFileName (string type) |
string | getResultFileName () |
int | getRegion (string direction) |
int | getGridSize () |
int | getTimeSteps () |
DOMNode * | getExperiment () |
list< string > | getPostProcessorNameList () |
void | setXML (bool b) |
void | setList (bool b) |
Private Member Functions | |
void | listOptions () |
void | readCommandline () |
void | initDOM () |
string | getAttributeValue (const XMLCh *parentNode, const XMLCh *elementNode, const XMLCh *elementName) |
string | getAttributeValueByName (const XMLCh *elementNode, const XMLCh *elementName, const XMLCh *name) |
void | initParamsFromDOM (DOMNode *node, multimap< string, double * >) |
void | resolveParamNamesInDOM (DOMNode *node, multimap< string, double * >) |
void | addParamToDOM (DOMElement *node, string name, string value) |
void | addPluginToDOM (DOMElement *node, string name) |
InputHandler (const InputHandler &x) | |
Private Attributes | |
int | argc |
char ** | argv |
bool | isXML |
bool | doList |
DOMElement * | rootElem |
DOMElement * | greenElem |
DOMElement * | loadElem |
DOMElement * | kernelElem |
|
hidden copy constructor - we do not want to accidentially copy objects |
|
|
|
|
|
this function adds a parameter tag with the attributes name and value to node: <node> <parameter name='name' value='value' /> </node> |
|
this function adds a plugin tag with the attribute name to node: <node> <plugin name='name' /> </node> |
|
extract's the value of an attribute and returns it: <parentnode> <elementNode attribute="returnstring" /> </parentnode> the first parentNode found in the document is used. thus, it is expected to be unique.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements XMLHandler.
|
|
|
|
|
|
|
|
|
|
|
|
set names of DOM nodes tht came from command line to something from the registry. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from XMLHandler.
|