Vespucci
1.0.0
|
#include <macroparser.h>
Public Member Functions | |
MacroParser (QSharedPointer< VespucciDataset > dataset) | |
bool | LoadMacro (QString macro) |
MacroParser::LoadMacro. More... | |
bool | ExecuteMacro () |
MacroParser::ExecuteMacro Iteratively executes the commands in commands_. Each command is first validated. If any command is invalid, none execute. The method returns false whenever any invalid command is found. The caller only uses error_line and error_param if this function returns false. More... | |
void | Error (int &error_line, int &error_param) |
Definition at line 24 of file macroparser.h.
MacroParser::MacroParser | ( | QSharedPointer< VespucciDataset > | dataset | ) |
Definition at line 22 of file macroparser.cpp.
void MacroParser::Error | ( | int & | error_line, |
int & | error_param | ||
) |
Definition at line 122 of file macroparser.cpp.
bool MacroParser::ExecuteMacro | ( | ) |
MacroParser::ExecuteMacro Iteratively executes the commands in commands_. Each command is first validated. If any command is invalid, none execute. The method returns false whenever any invalid command is found. The caller only uses error_line and error_param if this function returns false.
Definition at line 103 of file macroparser.cpp.
bool MacroParser::LoadMacro | ( | QString | macro | ) |
macro | Parses string containing the macro. Commands must be separated by newlines and cannot be nested. If not on list of valid commands (or not formatted correctly), user will be warned of syntax error if this returns false |
Definition at line 68 of file macroparser.cpp.