Contains data relevent for the action of editing an auto tag.
More...
#include <editautotagaction.h>
|
std::string | name_ |
| The target tags name.
|
|
std::string | new_name_ |
| The target tags new name, if ActionType == rename.
|
|
ActionType | type_ |
| The type of action to be performed.
|
|
std::string | expression_ |
| Expression used to generate a new evaluator.
|
|
std::vector< TagCondition > | conditions_ |
| Conditions used to generate a new evaluator.
|
|
Contains data relevent for the action of editing an auto tag.
◆ ActionType
Represents the type of action performed.
Enumerator |
---|
add | Add a new tag.
|
remove | Remove an existing tag.
|
rename | Rename a tag.
|
change_evaluator | Create a new evaluator.
|
◆ EditAutoTagAction() [1/3]
EditAutoTagAction::EditAutoTagAction |
( |
const std::string & | name, |
|
|
ActionType | type ) |
Constructor for an add or remove action.
- Parameters
-
name | Name of the tag to be added/ removed. |
type | Action type. |
◆ EditAutoTagAction() [2/3]
EditAutoTagAction::EditAutoTagAction |
( |
const std::string & | name, |
|
|
const std::string & | new_name ) |
Constructor for a rename action.
- Parameters
-
name | Name of the tag to be renamed. |
new_name | New name for the tag. |
◆ EditAutoTagAction() [3/3]
EditAutoTagAction::EditAutoTagAction |
( |
const std::string & | name, |
|
|
const std::string & | expression, |
|
|
const std::vector< TagCondition > & | conditions ) |
Constructor for a change_evaluator action.
- Parameters
-
name | Name of the tag the evaluator of which is to be updated. |
expression | New evaluator expression. |
conditions | New evaluator conditions. |
◆ getConditions()
std::vector< TagCondition > EditAutoTagAction::getConditions |
( |
| ) |
const |
Getter for the conditions of the updated evaluator.
- Returns
- The conditions.
◆ getExpression()
std::string EditAutoTagAction::getExpression |
( |
| ) |
const |
Getter for the expression of the updated evaluator.
- Returns
- The expression.
◆ getName()
std::string EditAutoTagAction::getName |
( |
| ) |
const |
Getter for the target tags name.
- Returns
- The name.
◆ getNewName()
std::string EditAutoTagAction::getNewName |
( |
| ) |
const |
Getter for the new name.
- Returns
- The new name.
◆ getType()
The documentation for this class was generated from the following files: