Sayonara Player
Public Member Functions | List of all members
Tagging::Expression Class Reference

#include <Expression.h>

Detailed Description

The TagExpression class.

Public Member Functions

 Expression (const QString &tag_str, const QString &filename)
 
bool update_tag (const QString &tag_str, const QString &filepath)
 fills the _cap_map More...
 
bool check_tag (const Tag &tag, const QString &str)
 checks, if one specific tag can be applied to the string More...
 
QMap< Tag, ReplacedString > get_tag_val_map () const
 

Member Function Documentation

◆ check_tag()

bool Tagging::Expression::check_tag ( const Tag &  tag,
const QString &  str 
)

checks, if one specific tag can be applied to the string

Parameters
tage.g. <t>
strusually the filepath
Returns
true on success, false else

◆ update_tag()

bool Tagging::Expression::update_tag ( const QString &  tag_str,
const QString &  filepath 
)

fills the _cap_map

Parameters
tag_strthe tag string entered in UI
filepaththe filepath
Returns
true if regular expressions can be applied to filepath, false else