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

#include <message_data.h>

Public Member Functions

 MessageData ()=default
 
 MessageData (int id, int address, const std::string &rawString, const std::vector< uint8_t > &rawData, const std::string &parsedString, const std::vector< uint8_t > &parsedData)
 
 MessageData (const MessageData &other)
 
std::string ToString () const
 
std::string OptimizeMessageForDictionary (std::string message_string, const std::vector< DictionaryEntry > &dictionary)
 
void SetMessage (const std::string &message, const std::vector< DictionaryEntry > &dictionary)
 

Public Attributes

int ID = 0
 
int Address = 0
 
std::string RawString
 
std::string ContentsParsed
 
std::vector< uint8_t > Data
 
std::vector< uint8_t > DataParsed
 

Detailed Description

Definition at line 90 of file message_data.h.

Constructor & Destructor Documentation

◆ MessageData() [1/3]

yaze::editor::MessageData::MessageData ( )
default

Referenced by MessageData().

◆ MessageData() [2/3]

yaze::editor::MessageData::MessageData ( int id,
int address,
const std::string & rawString,
const std::vector< uint8_t > & rawData,
const std::string & parsedString,
const std::vector< uint8_t > & parsedData )
inline

Definition at line 99 of file message_data.h.

References Address, ContentsParsed, Data, DataParsed, ID, and RawString.

◆ MessageData() [3/3]

yaze::editor::MessageData::MessageData ( const MessageData & other)
inline

Definition at line 111 of file message_data.h.

References Address, ContentsParsed, Data, DataParsed, ID, MessageData(), and RawString.

Here is the call graph for this function:

Member Function Documentation

◆ ToString()

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

Definition at line 120 of file message_data.h.

References ContentsParsed, and ID.

◆ OptimizeMessageForDictionary()

std::string yaze::editor::MessageData::OptimizeMessageForDictionary ( std::string message_string,
const std::vector< DictionaryEntry > & dictionary )
inline

Definition at line 124 of file message_data.h.

References yaze::editor::CHEESE, and yaze::editor::ReplaceAllDictionaryWords().

Referenced by SetMessage().

Here is the call graph for this function:

◆ SetMessage()

void yaze::editor::MessageData::SetMessage ( const std::string & message,
const std::vector< DictionaryEntry > & dictionary )
inline

Definition at line 151 of file message_data.h.

References ContentsParsed, OptimizeMessageForDictionary(), and RawString.

Here is the call graph for this function:

Member Data Documentation

◆ ID

int yaze::editor::MessageData::ID = 0

◆ Address

int yaze::editor::MessageData::Address = 0

Definition at line 92 of file message_data.h.

Referenced by MessageData(), MessageData(), and yaze::editor::ParseSingleMessage().

◆ RawString

std::string yaze::editor::MessageData::RawString

◆ ContentsParsed

std::string yaze::editor::MessageData::ContentsParsed

◆ Data

std::vector<uint8_t> yaze::editor::MessageData::Data

Definition at line 95 of file message_data.h.

Referenced by MessageData(), MessageData(), and yaze::editor::ParseSingleMessage().

◆ DataParsed

std::vector<uint8_t> yaze::editor::MessageData::DataParsed

Definition at line 96 of file message_data.h.

Referenced by MessageData(), MessageData(), and yaze::editor::ParseSingleMessage().


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