Xmipp
v3.23.11-Nereus
|
#include <argsparser.h>
Public Member Functions | |
ParamDef (ArgLexer *lexer, ASTNode *parent) | |
~ParamDef () | |
bool | parseParamList (ArgTokenType startToken, ProgramDef *prog, StringVector ¶mList, bool addName) |
bool | parseArgumentList () |
virtual bool | parse () |
bool | checkRequires (std::stringstream &errors, ProgramDef *prog) |
virtual void | check (std::stringstream &errors) |
bool | containsArgument (const String &argName) |
ArgumentDef * | findArgument (const String &argName) |
bool | containsAlias (const String &alias) |
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 | |
bool | notOptional |
bool | orBefore |
bool | independent |
std::vector< ArgumentDef * > | arguments |
std::vector< const char * > | cmdArguments |
std::vector< ParamDef * > * | exclusiveGroup |
int | counter |
for count the number of times it appears in command line More... | |
CommentList | comments |
StringVector | aliases |
StringVector | requires |
Public Attributes inherited from ASTNode | |
ASTNode * | parent |
ArgLexer * | pLexer |
ArgToken | token |
String | name |
int | visible |
Class representing the definition of an param An param definition is in the form:
Definition at line 192 of file argsparser.h.
Definition at line 522 of file argsparser.cpp.
ParamDef::~ParamDef | ( | ) |
Definition at line 529 of file argsparser.cpp.
|
virtual |
Implements ASTNode.
Definition at line 715 of file argsparser.cpp.
bool ParamDef::checkRequires | ( | std::stringstream & | errors, |
ProgramDef * | prog | ||
) |
Definition at line 699 of file argsparser.cpp.
bool ParamDef::containsAlias | ( | const String & | alias | ) |
Definition at line 550 of file argsparser.cpp.
bool ParamDef::containsArgument | ( | const String & | argName | ) |
Definition at line 537 of file argsparser.cpp.
ArgumentDef * ParamDef::findArgument | ( | const String & | argName | ) |
Definition at line 542 of file argsparser.cpp.
|
virtual |
Implements ASTNode.
Definition at line 558 of file argsparser.cpp.
bool ParamDef::parseArgumentList | ( | ) |
Definition at line 642 of file argsparser.cpp.
bool ParamDef::parseParamList | ( | ArgTokenType | startToken, |
ProgramDef * | prog, | ||
StringVector & | paramList, | ||
bool | addName | ||
) |
Definition at line 668 of file argsparser.cpp.
StringVector ParamDef::aliases |
Definition at line 204 of file argsparser.h.
std::vector<ArgumentDef*> ParamDef::arguments |
Definition at line 198 of file argsparser.h.
std::vector<const char *> ParamDef::cmdArguments |
Definition at line 199 of file argsparser.h.
CommentList ParamDef::comments |
Definition at line 203 of file argsparser.h.
int ParamDef::counter |
for count the number of times it appears in command line
Definition at line 201 of file argsparser.h.
std::vector<ParamDef*>* ParamDef::exclusiveGroup |
Definition at line 200 of file argsparser.h.
bool ParamDef::independent |
Definition at line 197 of file argsparser.h.
bool ParamDef::notOptional |
Definition at line 195 of file argsparser.h.
bool ParamDef::orBefore |
Definition at line 196 of file argsparser.h.
StringVector ParamDef::requires |
Definition at line 205 of file argsparser.h.