yaze 0.3.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::smatch MatchMe (const 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 275 of file message_data.h.

Constructor & Destructor Documentation

◆ TextElement() [1/2]

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

◆ TextElement() [2/2]

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

Definition at line 285 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

Definition at line 307 of file message_data.h.

References HasArgument, and Token.

◆ MatchMe()

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

Definition at line 315 of file message_data.h.

References StrictPattern.

◆ Empty()

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

Definition at line 322 of file message_data.h.

References ID.

◆ operator==()

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

Definition at line 325 of file message_data.h.

References ID.

Member Data Documentation

◆ ID

uint8_t yaze::editor::TextElement::ID

◆ Token

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

Definition at line 277 of file message_data.h.

Referenced by GetParamToken(), yaze::test::TEST_F(), and TextElement().

◆ GenericToken

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

Definition at line 278 of file message_data.h.

Referenced by TextElement().

◆ Pattern

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

Definition at line 279 of file message_data.h.

Referenced by TextElement().

◆ StrictPattern

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

Definition at line 280 of file message_data.h.

Referenced by MatchMe(), and TextElement().

◆ Description

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

Definition at line 281 of file message_data.h.

Referenced by TextElement().

◆ HasArgument

bool yaze::editor::TextElement::HasArgument

Definition at line 282 of file message_data.h.

Referenced by GetParamToken(), yaze::editor::ParseMessageToData(), and TextElement().


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