Limo
A simple mod manager
Loading...
Searching...
No Matches
EditManualTagAction Class Reference

Contains data relevent for the action of editing a manual tag. More...

#include <editmanualtagaction.h>

Public Types

enum class  ActionType { add , remove , rename }
 Represents the type of action performed. More...
 

Public Member Functions

 EditManualTagAction (const std::string &name, ActionType type, const std::string &new_name="")
 Constructor.
 
std::string getName () const
 Getter for the target tags name.
 
std::string getNewName () const
 Getter for the new name.
 
ActionType getType () const
 Getter for the ActionType to be performed.
 

Private Attributes

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.
 

Detailed Description

Contains data relevent for the action of editing a manual tag.

Member Enumeration Documentation

◆ ActionType

Represents the type of action performed.

Enumerator
add 

Add a new tag.

remove 

Remove an existing tag.

rename 

Rename a tag.

Constructor & Destructor Documentation

◆ EditManualTagAction()

EditManualTagAction::EditManualTagAction ( const std::string & name,
ActionType type,
const std::string & new_name = "" )

Constructor.

Parameters
nameName of the tag to be edited.
typeType of editing action to be performed.
new_nameContains the tags new name, if action is of type Rename.

Member Function Documentation

◆ getName()

std::string EditManualTagAction::getName ( ) const

Getter for the target tags name.

Returns
The name.

◆ getNewName()

std::string EditManualTagAction::getNewName ( ) const

Getter for the new name.

Returns
The new name.

◆ getType()

EditManualTagAction::ActionType EditManualTagAction::getType ( ) const

Getter for the ActionType to be performed.

Returns
The ActionType.

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