kig
argsparser.cpp
Go to the documentation of this file.
199 static bool checkArgs( const Collection& os, uint min, const std::vector<ArgsParser::spec>& argsspec )
static bool checkArgs(const Collection &os, uint min, const std::vector< ArgsParser::spec > &argsspec)
Definition: argsparser.cpp:199
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
bool inherits(const ObjectImpType *t) const
Returns true if this ObjectImp inherits the ObjectImp type represented by t.
Definition: object_imp.cc:279
std::string selectStatement(const Args &sel) const
returns the select statement for the next selectable argument when the given args are selected...
Definition: argsparser.cpp:242
static int check(const Collection &c, const std::vector< ArgsParser::spec > &margs)
Definition: argsparser.cpp:75
Definition: argsparser.h:112
ArgsParser without(const ObjectImpType *type) const
returns a new ArgsParser that wants the same args, except for the ones of the given type...
Definition: argsparser.cpp:145
An ObjectCalcer is an object that represents an algorithm for calculating an ObjectImp from other Obj...
Definition: object_calcer.h:66
static Collection parse(const Collection &os, const std::vector< ArgsParser::spec > margs)
Definition: argsparser.cpp:110
Definition: argsparser.h:112
bool checkArgs(const std::vector< ObjectCalcer * > &os) const
Definition: argsparser.cpp:222
Definition: argsparser.h:113
This class is meant to take care of checking the types of the parents to ObjectCalcer's, and to put them in the correct order.
Definition: argsparser.h:106
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents, this function returns whether the returned ObjectIm...
Definition: argsparser.cpp:236
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
returns the minimal ObjectImp ID that o needs to inherit in order to be useful.
Definition: argsparser.cpp:185
static bool hasimp(const ObjectCalcer &o, const ObjectImpType *imptype)
Definition: argsparser.cpp:52
virtual const ObjectImp * imp() const =0
Returns the ObjectImp of this ObjectCalcer.
std::string usetext(const ObjectImp *o, const Args &sel) const
returns the usetext for the argument that o would be used for, if sel were used as parents...
Definition: argsparser.cpp:192
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
Definition: argsparser.h:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.