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:79
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:69
@ 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:226
virtual bool do_tag(u32, void const *, u32)
Definition processor.cpp:232
void stack_popCurrent_()
Definition processor.h:202
const char * pszCurrent_
Definition processor.h:234
virtual void do_reset()
Definition processor.cpp:219
static const char * process_onSelect_limited_(JMessage::TProcessor *)
Definition processor.cpp:355
virtual void do_select_end()
Definition processor.cpp:241
bool isResourceCache_groupID(u16 groupID) const
Definition processor.h:217
const char * on_message(u32) const
Definition processor.cpp:734
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:265
virtual void do_tag_(u32, void const *, u32)=0
Definition processor.cpp:274
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:740
const TResource * getResource_groupID(u16) const
Definition processor.cpp:143
void reset()
Definition processor.cpp:118
bool stack_isPushable() const
Definition processor.h:207
virtual void do_character(int)
Definition processor.cpp:229
virtual bool do_setBegin_isReady_() const
Definition processor.cpp:269
virtual void do_select_begin(u32)
Definition processor.cpp:238
void setResourceCache(TResource *cache)
Definition processor.h:229
void on_tag_()
Definition processor.cpp:249
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:245
void resetResourceCache()
Definition processor.h:230
void on_select_begin(char const *(*)(JMessage::TProcessor *), void const *, char const *, u32)
Definition processor.cpp:183
static const char * process_onSelect_(JMessage::TProcessor *)
Definition processor.cpp:366
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:329
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:200
virtual void do_begin(void const *, char const *)
Definition processor.cpp:222
virtual void do_begin_(void const *, char const *)=0
bool(* pfnProcess_func)(TProcessor *)
Definition processor.h:46
void on_select_separate()
Definition processor.cpp:209
static bool process_onCharacterEnd_select_(JMessage::TProcessor *)
Definition processor.cpp:341
virtual ~TProcessor()
Definition processor.cpp:115
void on_begin(const void *entry, const char *param_1)
Definition processor.h:136
void stack_popCurrent()
Definition processor.cpp:137
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:308
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:125
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:110
TResource * getResource_groupID(u16 groupID) const
Definition processor.h:24
TResourceContainer * getResourceContainer() const
Definition processor.h:32
virtual ~TReference()
Definition processor.cpp:107
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:699
virtual ~TRenderingProcessor()
Definition processor.cpp:674
virtual void do_end_()
Definition processor.cpp:695
virtual void do_begin_(void const *, char const *)
Definition processor.cpp:691
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
union JMessage::TSequenceProcessor::TProcess_::@125 process
void reset()
Definition processor.h:252
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
struct JMessage::TSequenceProcessor::TProcess_::@125::@126 branch_process
struct JMessage::TSequenceProcessor::TProcess_::@125::@127 jump_process
Definition processor.h:245
void on_branch(void const *, char const *)
Definition processor.cpp:491
static const void * process_onBranch_limited_(JMessage::TSequenceProcessor const *, u32)
Definition processor.cpp:651
void on_jump_register(void const *(*)(JMessage::TSequenceProcessor const *), u32)
Definition processor.cpp:446
virtual s32 do_branch_queryResult()
Definition processor.cpp:518
void on_branch_query(u32)
Definition processor.cpp:478
static const void * process_onJump_(JMessage::TSequenceProcessor const *)
Definition processor.cpp:644
virtual void do_resetStatus_(char const *)
Definition processor.cpp:528
TControl * getControl() const
Definition processor.h:309
u32 on_branch_queryResult()
Definition processor.cpp:485
virtual void do_begin_(void const *, char const *)
Definition processor.cpp:544
void on_jump(void const *, char const *)
Definition processor.cpp:461
static void * process_setMessageCode_(JMessage::TSequenceProcessor const *, u16, u16)
Definition processor.cpp:618
static void process_setMessageIndex_reserved_(u16)
Definition processor.cpp:609
virtual bool do_jump_isReady()
Definition processor.cpp:504
virtual bool do_setBegin_isReady_() const
Definition processor.cpp:538
virtual void do_tag_(u32, void const *, u32)
Definition processor.cpp:554
virtual bool do_isReady()
Definition processor.cpp:498
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:524
bool on_isReady()
Definition processor.cpp:440
static const void * process_onBranch_(JMessage::TSequenceProcessor const *, u32)
Definition processor.cpp:661
const void *(* branchPfn)(const TSequenceProcessor *, u32)
Definition processor.h:246
TProcess_ oProcess2_
Definition processor.h:322
virtual ~TSequenceProcessor()
Definition processor.cpp:382
TControl * pControl_
Definition processor.h:320
bool on_jump_isReady()
Definition processor.cpp:455
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:510
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:469
virtual void do_branch_query(u32)
Definition processor.cpp:514
virtual void do_end_()
Definition processor.cpp:548
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:637
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6