yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::editor::TextElement Struct Reference

#include <message_data.h>

Public Member Functions

 TextElement ()=default
 
 TextElement (uint8_t id, std::string token, bool arg, std::string description)
 
std::string GetParameterizedToken (uint8_t value=0)
 
std::string ToString ()
 
std::smatch MatchMe (std::string dfrag) const
 
bool Empty ()
 
bool operator== (const TextElement &other) const
 

Public Attributes

uint8_t ID
 
std::string Token
 
std::string GenericToken
 
std::string Pattern
 
std::string StrictPattern
 
std::string Description
 
bool HasArgument
 

Detailed Description

Definition at line 157 of file message_data.h.

Constructor & Destructor Documentation

◆ TextElement() [1/2]

yaze::app::editor::TextElement::TextElement ( )
default

◆ TextElement() [2/2]

yaze::app::editor::TextElement::TextElement ( uint8_t id,
std::string token,
bool arg,
std::string description )
inline

Definition at line 167 of file message_data.h.

References Description, GenericToken, HasArgument, ID, Pattern, StrictPattern, and Token.

Member Function Documentation

◆ GetParameterizedToken()

std::string yaze::app::editor::TextElement::GetParameterizedToken ( uint8_t value = 0)
inline

◆ ToString()

std::string yaze::app::editor::TextElement::ToString ( )
inline

Definition at line 193 of file message_data.h.

References Description, and GenericToken.

◆ MatchMe()

std::smatch yaze::app::editor::TextElement::MatchMe ( std::string dfrag) const
inline

Definition at line 197 of file message_data.h.

References StrictPattern.

◆ Empty()

◆ operator==()

bool yaze::app::editor::TextElement::operator== ( const TextElement & other) const
inline

Definition at line 207 of file message_data.h.

References ID.

Member Data Documentation

◆ ID

uint8_t yaze::app::editor::TextElement::ID

◆ Token

std::string yaze::app::editor::TextElement::Token

◆ GenericToken

std::string yaze::app::editor::TextElement::GenericToken

◆ Pattern

std::string yaze::app::editor::TextElement::Pattern

Definition at line 161 of file message_data.h.

Referenced by TextElement().

◆ StrictPattern

std::string yaze::app::editor::TextElement::StrictPattern

Definition at line 162 of file message_data.h.

Referenced by MatchMe(), and TextElement().

◆ Description

std::string yaze::app::editor::TextElement::Description

Definition at line 163 of file message_data.h.

Referenced by TextElement(), and ToString().

◆ HasArgument


The documentation for this struct was generated from the following file: