Xmipp
v3.23.11-Nereus
|
#include <argsparser.h>
Public Member Functions | |
ArgumentDef (ArgLexer *lexer, ASTNode *parent) | |
~ArgumentDef () | |
virtual bool | parse () |
virtual void | check (std::stringstream &errors) |
bool | acceptArguments (std::stringstream &errors, size_t &argIndex, std::vector< const char *> &cmdArguments) |
This function will take an index and check if there are enougth arguments. More... | |
Public Member Functions inherited from ASTNode | |
ASTNode (ArgLexer *lexer=NULL, ASTNode *parent=NULL) | |
virtual | ~ASTNode () |
virtual bool | consume (ArgTokenType type) |
ArgTokenType | lookahead () const |
bool | lookahead (ArgTokenType type) const |
ArgToken * | currentToken () const |
void | nextToken () |
bool | parseCommentList (CommentList &comments) |
void | error (String msg) |
void | unexpectedToken (String msg="") |
Public Attributes | |
String | argDefault |
bool | isList |
bool | isType |
std::vector< ParamDef * > | subParams |
bool | hasDefault |
Public Attributes inherited from ASTNode | |
ASTNode * | parent |
ArgLexer * | pLexer |
ArgToken | token |
String | name |
int | visible |
Definition at line 169 of file argsparser.h.
Definition at line 421 of file argsparser.cpp.
ArgumentDef::~ArgumentDef | ( | ) |
Definition at line 428 of file argsparser.cpp.
bool ArgumentDef::acceptArguments | ( | std::stringstream & | errors, |
size_t & | argIndex, | ||
std::vector< const char *> & | cmdArguments | ||
) |
This function will take an index and check if there are enougth arguments.
Definition at line 469 of file argsparser.cpp.
|
inlinevirtual |
|
virtual |
Implements ASTNode.
Definition at line 434 of file argsparser.cpp.
String ArgumentDef::argDefault |
Definition at line 172 of file argsparser.h.
bool ArgumentDef::hasDefault |
Definition at line 176 of file argsparser.h.
bool ArgumentDef::isList |
Definition at line 173 of file argsparser.h.
bool ArgumentDef::isType |
Definition at line 174 of file argsparser.h.
std::vector<ParamDef*> ArgumentDef::subParams |
Definition at line 175 of file argsparser.h.