1#ifndef JMESSAGE_PROCESSOR_H
2#define JMESSAGE_PROCESSOR_H
9struct TResourceContainer;
60 void push(
const char*
string) {
116 virtual void do_begin(
void const*,
char const*);
277 const char*
process(
char const*);
281 void on_jump(
void const*,
char const*);
286 void on_branch(
void const*,
char const*);
299 virtual void do_begin_(
void const*,
char const*);
304 virtual void do_jump(
void const*,
char const*);
307 virtual void do_branch(
void const*,
char const*);
334 virtual void do_begin_(
void const*,
char const*);
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static void end(b_oh_class *i_this)
Definition d_a_b_oh.cpp:527
OutputIt copy(InputIt first, InputIt last, OutputIt d_first)
Definition algorithm.h:48
@ start
Definition strtoul.c:8
Definition processor.h:79
const void * pOffset
Definition processor.h:89
void reset_normal()
Definition processor.h:82
void reset_select()
Definition processor.h:83
const char * pcBase
Definition processor.h:88
struct JMessage::TProcessor::TProcess_::@122 rData
TProcess_()
Definition processor.h:80
pfnProcess_func pfnProcess_CharacterEnd
Definition processor.h:85
u32 uRest
Definition processor.h:90
Definition processor.h:48
const char * top() const
Definition processor.h:58
void pop()
Definition processor.h:65
TStack_ & operator=(const TStack_ &other)
Definition processor.h:67
const char * stack[4]
Definition processor.h:76
u32 size() const
Definition processor.h:56
u32 max_size() const
Definition processor.h:55
bool empty() const
Definition processor.h:51
bool IsPushable() const
Definition processor.h:52
void push(const char *string)
Definition processor.h:60
void clear()
Definition processor.h:54
u32 upsz_
Definition processor.h:75
TStack_()
Definition processor.h:49
Definition processor.h:42
void on_character(int character)
Definition processor.h:157
virtual void do_end()
Definition processor.cpp:232
virtual bool do_tag(u32, void const *, u32)
Definition processor.cpp:238
void stack_popCurrent_()
Definition processor.h:202
const char * pszCurrent_
Definition processor.h:234
virtual void do_reset()
Definition processor.cpp:225
static const char * process_onSelect_limited_(JMessage::TProcessor *)
Definition processor.cpp:361
virtual void do_select_end()
Definition processor.cpp:247
bool isResourceCache_groupID(u16 groupID) const
Definition processor.h:217
const char * on_message(u32) const
Definition processor.cpp:745
int setBegin_messageEntryText(const TProcessor *processor, const void *entry, const char *param_2)
Definition processor.h:171
const char * on_word(u32 param_0) const
Definition processor.h:152
virtual void do_resetStatus_(char const *)
Definition processor.cpp:271
virtual void do_tag_(u32, void const *, u32)=0
Definition processor.cpp:280
u32 toMessageCode_messageID(u32, u32, bool *) const
Definition processor.cpp:156
int on_parseCharacter(const char **string) const
Definition processor.h:154
const char * getCurrent() const
Definition processor.h:210
const char * getMessageText_messageCode(u32) const
Definition processor.cpp:751
const TResource * getResource_groupID(u16) const
Definition processor.cpp:142
void reset()
Definition processor.cpp:117
bool stack_isPushable() const
Definition processor.h:207
virtual void do_character(int)
Definition processor.cpp:235
virtual bool do_setBegin_isReady_() const
Definition processor.cpp:275
virtual void do_select_begin(u32)
Definition processor.cpp:244
void setResourceCache(TResource *cache)
Definition processor.h:229
void on_tag_()
Definition processor.cpp:255
int setBegin_messageEntryText(const TResource *resource, const void *entry, const char *param_2)
Definition processor.h:163
const TReference * getReference() const
Definition processor.h:211
virtual void do_select_separate()
Definition processor.cpp:251
void resetResourceCache()
Definition processor.h:230
void on_select_begin(char const *(*)(JMessage::TProcessor *), void const *, char const *, u32)
Definition processor.cpp:189
static const char * process_onSelect_(JMessage::TProcessor *)
Definition processor.cpp:372
const char * getMessageText_messageCode(u16 messageCode, u16 messageIndex) const
Definition processor.h:187
TStack_ oStack_
Definition processor.h:235
const char * on_message_limited(u16 messageIndex) const
Definition processor.h:159
const TResource * getResourceCache() const
Definition processor.h:209
TResourceContainer * getResourceContainer() const
Definition processor.h:221
static bool process_onCharacterEnd_normal_(JMessage::TProcessor *)
Definition processor.cpp:335
const TReference * pReference_
Definition processor.h:232
void on_tag(u32 param_0, const void *param_1, u32 param_2)
Definition processor.h:146
void on_select_end()
Definition processor.cpp:206
virtual void do_begin(void const *, char const *)
Definition processor.cpp:228
virtual void do_begin_(void const *, char const *)=0
bool(* pfnProcess_func)(TProcessor *)
Definition processor.h:46
void on_select_separate()
Definition processor.cpp:215
static bool process_onCharacterEnd_select_(JMessage::TProcessor *)
Definition processor.cpp:347
virtual ~TProcessor()
Definition processor.cpp:114
void on_begin(const void *entry, const char *param_1)
Definition processor.h:136
void stack_popCurrent()
Definition processor.cpp:136
TProcess_ oProcess_
Definition processor.h:236
const TResource * pResourceCache_
Definition processor.h:233
void stack_pushCurrent_(const char *string)
Definition processor.h:197
void * getMessageEntry_messageCode(u16 messageCode, u16 messageIndex) const
Definition processor.h:177
void on_end()
Definition processor.h:141
const TResource * getResource_groupID_uncached(u16 groupID) const
Definition processor.h:213
bool process_character_()
Definition processor.cpp:314
void on_resetStatus_(const char *param_0)
Definition processor.h:129
TProcessor(const TReference *reference)
Definition processor.h:43
void stack_pushCurrent(char const *)
Definition processor.cpp:124
Definition processor.h:15
TReference()
Definition processor.h:16
int on_parseCharacter(const char **string) const
Definition processor.h:21
TResourceContainer * pcResource_
Definition processor.h:35
void setResourceContainer(TResourceContainer *container)
Definition processor.h:33
virtual const char * do_word(u32) const
Definition processor.cpp:109
TResource * getResource_groupID(u16 groupID) const
Definition processor.h:24
TResourceContainer * getResourceContainer() const
Definition processor.h:32
virtual ~TReference()
Definition processor.cpp:106
const char * on_word(u32 param_0) const
Definition processor.h:22
Definition processor.h:329
bool process_messageEntryText(TProcessor *param_0, void const *param_1, const char *param_2)
Definition processor.h:338
virtual void do_tag_(u32, void const *, u32)
Definition processor.cpp:710
virtual ~TRenderingProcessor()
Definition processor.cpp:685
virtual void do_end_()
Definition processor.cpp:706
virtual void do_begin_(void const *, char const *)
Definition processor.cpp:702
TResource * getResource_groupID(u16 groupID)
Definition resource.h:98
int parseCharacter(const char **string) const
Definition resource.h:97
char * getMessageText_messageEntry(const void *pEntry) const
Definition resource.h:38
u16 getGroupID() const
Definition resource.h:28
const char * getMessageText_messageIndex(u16 messageIndex) const
Definition resource.h:42
Definition processor.h:249
void reset()
Definition processor.h:252
struct JMessage::TSequenceProcessor::TProcess_::@123::@125 jump_process
const void * pTarget
Definition processor.h:257
TProcess_()
Definition processor.h:250
branchPfn branchFn
Definition processor.h:256
jumpPfn jumpFn
Definition processor.h:261
u32 uTarget
Definition processor.h:258
u32 u32Target
Definition processor.h:262
union JMessage::TSequenceProcessor::TProcess_::@123 process
struct JMessage::TSequenceProcessor::TProcess_::@123::@124 branch_process
Definition processor.h:245
void on_branch(void const *, char const *)
Definition processor.cpp:497
static const void * process_onBranch_limited_(JMessage::TSequenceProcessor const *, u32)
Definition processor.cpp:662
void on_jump_register(void const *(*)(JMessage::TSequenceProcessor const *), u32)
Definition processor.cpp:452
virtual s32 do_branch_queryResult()
Definition processor.cpp:524
void on_branch_query(u32)
Definition processor.cpp:484
static const void * process_onJump_(JMessage::TSequenceProcessor const *)
Definition processor.cpp:655
virtual void do_resetStatus_(char const *)
Definition processor.cpp:534
TControl * getControl() const
Definition processor.h:309
u32 on_branch_queryResult()
Definition processor.cpp:491
virtual void do_begin_(void const *, char const *)
Definition processor.cpp:550
void on_jump(void const *, char const *)
Definition processor.cpp:467
static void * process_setMessageCode_(JMessage::TSequenceProcessor const *, u16, u16)
Definition processor.cpp:629
static void process_setMessageIndex_reserved_(u16)
Definition processor.cpp:615
virtual bool do_jump_isReady()
Definition processor.cpp:510
virtual bool do_setBegin_isReady_() const
Definition processor.cpp:544
virtual void do_tag_(u32, void const *, u32)
Definition processor.cpp:560
virtual bool do_isReady()
Definition processor.cpp:504
SeqStatus
Definition processor.h:268
@ STATUS_BRANCH
Definition processor.h:273
@ STATUS_ONE
Definition processor.h:270
@ STATUS_NORMAL
Definition processor.h:271
@ STATUS_JUMP
Definition processor.h:272
@ STATUS_READY
Definition processor.h:269
SeqStatus eStatus_
Definition processor.h:321
virtual void do_branch(void const *, char const *)
Definition processor.cpp:530
bool on_isReady()
Definition processor.cpp:446
static const void * process_onBranch_(JMessage::TSequenceProcessor const *, u32)
Definition processor.cpp:672
const void *(* branchPfn)(const TSequenceProcessor *, u32)
Definition processor.h:246
TProcess_ oProcess2_
Definition processor.h:322
virtual ~TSequenceProcessor()
Definition processor.cpp:388
TControl * pControl_
Definition processor.h:320
bool on_jump_isReady()
Definition processor.cpp:461
static const void * process_setMessageIndex_(const TSequenceProcessor *pProcessor, u16 param_1)
Definition processor.h:311
virtual void do_jump(void const *, char const *)
Definition processor.cpp:516
const void *(* jumpPfn)(const TSequenceProcessor *)
Definition processor.h:247
void on_branch_register(void const *(*)(JMessage::TSequenceProcessor const *, u32), void const *, u32)
Definition processor.cpp:475
virtual void do_branch_query(u32)
Definition processor.cpp:520
virtual void do_end_()
Definition processor.cpp:554
static const void * process_setMessageCode_(const TSequenceProcessor *pProcessor, u32 param_1)
Definition processor.h:316
static const void * process_onJump_limited_(JMessage::TSequenceProcessor const *)
Definition processor.cpp:648
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6