Limo
A simple mod manager
Loading...
Searching...
No Matches
editautotagaction.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "tagcondition.h"
9#include <string>
10#include <vector>
11
12
17{
18public:
31
37 EditAutoTagAction(const std::string& name, ActionType type);
43 EditAutoTagAction(const std::string& name, const std::string& new_name);
50 EditAutoTagAction(const std::string& name,
51 const std::string& expression,
52 const std::vector<TagCondition>& conditions);
53
54
59 std::string getName() const;
64 std::string getNewName() const;
69 ActionType getType() const;
74 std::string getExpression() const;
79 std::vector<TagCondition> getConditions() const;
80
81private:
83 std::string name_;
85 std::string new_name_;
89 std::string expression_;
91 std::vector<TagCondition> conditions_;
92};
std::string expression_
Expression used to generate a new evaluator.
Definition editautotagaction.h:89
std::string getName() const
Getter for the target tags name.
Definition editautotagaction.cpp:26
ActionType type_
The type of action to be performed.
Definition editautotagaction.h:87
std::string getNewName() const
Getter for the new name.
Definition editautotagaction.cpp:31
std::string name_
The target tags name.
Definition editautotagaction.h:83
std::string getExpression() const
Getter for the expression of the updated evaluator.
Definition editautotagaction.cpp:41
ActionType getType() const
Getter for the ActionType to be performed.
Definition editautotagaction.cpp:36
ActionType
Represents the type of action performed.
Definition editautotagaction.h:21
@ remove
Remove an existing tag.
Definition editautotagaction.h:25
@ add
Add a new tag.
Definition editautotagaction.h:23
@ change_evaluator
Create a new evaluator.
Definition editautotagaction.h:29
@ rename
Rename a tag.
Definition editautotagaction.h:27
std::vector< TagCondition > conditions_
Conditions used to generate a new evaluator.
Definition editautotagaction.h:91
EditAutoTagAction(const std::string &name, ActionType type)
Constructor for an add or remove action.
Definition editautotagaction.cpp:3
std::vector< TagCondition > getConditions() const
Getter for the conditions of the updated evaluator.
Definition editautotagaction.cpp:46
std::string new_name_
The target tags new name, if ActionType == rename.
Definition editautotagaction.h:85
Contains the TagCondition struct.