digiKam
Digikam::Parser Class Reference
+ Inheritance diagram for Digikam::Parser:

Public Member Functions

ParseResults invalidModifiers (ParseSettings &settings)
 
RulesList modifiers () const
 
RulesList options () const
 
QString parse (ParseSettings &settings)
 
 Parser ()
 
void reset ()
 
bool tokenAtPosition (ParseSettings &settings, int pos)
 
bool tokenAtPosition (ParseSettings &settings, int pos, int &start, int &length)
 
virtual ~Parser ()
 

Static Public Member Functions

static bool parseStringIsValid (const QString &str)
 

Protected Member Functions

void registerModifier (Rule *modifier)
 
void registerOption (Rule *option)
 
void unregisterModifier (Rule *modifier)
 
void unregisterOption (Rule *option)
 

Constructor & Destructor Documentation

◆ Parser()

Digikam::Parser::Parser ( )
explicit

◆ ~Parser()

Digikam::Parser::~Parser ( )
virtual

Member Function Documentation

◆ invalidModifiers()

ParseResults Digikam::Parser::invalidModifiers ( ParseSettings settings)

◆ modifiers()

RulesList Digikam::Parser::modifiers ( ) const

◆ options()

◆ parse()

◆ parseStringIsValid()

bool Digikam::Parser::parseStringIsValid ( const QString &  str)
static

check if the given parse string is valid

Parameters
strthe parse string
Returns
true if valid / can be parsed

Referenced by parse().

◆ registerModifier()

void Digikam::Parser::registerModifier ( Rule modifier)
protected

References Digikam::Rule::isValid().

Referenced by Parser().

◆ registerOption()

void Digikam::Parser::registerOption ( Rule option)
protected

References Digikam::Rule::isValid().

Referenced by Parser().

◆ reset()

void Digikam::Parser::reset ( )

◆ tokenAtPosition() [1/2]

bool Digikam::Parser::tokenAtPosition ( ParseSettings settings,
int  pos 
)

◆ tokenAtPosition() [2/2]

bool Digikam::Parser::tokenAtPosition ( ParseSettings settings,
int  pos,
int &  start,
int &  length 
)

◆ unregisterModifier()

void Digikam::Parser::unregisterModifier ( Rule modifier)
protected

◆ unregisterOption()

void Digikam::Parser::unregisterOption ( Rule option)
protected

The documentation for this class was generated from the following files: