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

#include <message_data.h>

Public Member Functions

 TextElement ()=default
 
 TextElement (uint8_t id, const std::string &token, bool arg, const std::string &description)
 
std::string GetParamToken (uint8_t value=0) const
 
std::string ToString () const
 
std::smatch MatchMe (std::string dfrag) const
 
bool Empty () const
 
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 158 of file message_data.h.

Constructor & Destructor Documentation

◆ TextElement() [1/2]

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

Referenced by operator==().

◆ TextElement() [2/2]

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

Definition at line 168 of file message_data.h.

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

Member Function Documentation

◆ GetParamToken()

std::string yaze::editor::TextElement::GetParamToken ( uint8_t value = 0) const
inline

◆ ToString()

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

Definition at line 194 of file message_data.h.

References Description, and GenericToken.

◆ MatchMe()

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

Definition at line 198 of file message_data.h.

References StrictPattern.

◆ Empty()

bool yaze::editor::TextElement::Empty ( ) const
inline

◆ operator==()

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

Definition at line 208 of file message_data.h.

References ID, and TextElement().

Here is the call graph for this function:

Member Data Documentation

◆ ID

uint8_t yaze::editor::TextElement::ID

Definition at line 159 of file message_data.h.

Referenced by Empty(), operator==(), yaze::editor::ParseMessageToData(), and TextElement().

◆ Token

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

◆ GenericToken

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

Definition at line 161 of file message_data.h.

Referenced by yaze::editor::ParseTextDataByte(), TextElement(), and ToString().

◆ Pattern

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

Definition at line 162 of file message_data.h.

Referenced by TextElement().

◆ StrictPattern

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

Definition at line 163 of file message_data.h.

Referenced by MatchMe(), and TextElement().

◆ Description

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

Definition at line 164 of file message_data.h.

Referenced by TextElement(), and ToString().

◆ HasArgument


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