Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccConsoleDebugger Class Reference
+ Inheritance diagram for CIccConsoleDebugger:
+ Collaboration diagram for CIccConsoleDebugger:

Public Member Functions

virtual bool AfterOp (SIccCalcOp *op, SIccOpState &os, SIccCalcOp *ops)
 
virtual bool BeforeOp (SIccCalcOp *op, SIccOpState &os, SIccCalcOp *ops)
 
virtual void BeginApply ()
 
virtual void EndApply ()
 
virtual void Error (const char *szMsg)
 
virtual ~CIccConsoleDebugger ()
 
- Public Member Functions inherited from IIccCalcDebugger
virtual ~IIccCalcDebugger ()
 

Additional Inherited Members

- Static Public Member Functions inherited from IIccCalcDebugger
static void SetDebugger (IIccCalcDebugger *pDebugger)
 

Detailed Description

Definition at line 88 of file IccMpeCalc.cpp.

Constructor & Destructor Documentation

◆ ~CIccConsoleDebugger()

virtual CIccConsoleDebugger::~CIccConsoleDebugger ( )
inlinevirtual

Definition at line 92 of file IccMpeCalc.cpp.

92{}

Member Function Documentation

◆ AfterOp()

virtual bool CIccConsoleDebugger::AfterOp ( SIccCalcOp * op,
SIccOpState & os,
SIccCalcOp * ops )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 119 of file IccMpeCalc.cpp.

120 {
121 if (op->sig == icSigDataOp) {
122 printf("%9s\t", "data");
123 }
124 else {
125 if (op->sig == icSigIfOp || op->sig == icSigSelectOp) {
126 printf("End:");
127 }
128 std::string opDesc;
129 op->Describe(opDesc, 100); // TODO - propogate nVerboseness
130 printf("%9s\t", opDesc.c_str());
131 }
132
133 for (int j = 0; j < (int)os.pStack->size(); j++)
134 printf(" %.4f", (*os.pStack)[j]);
135 printf("\n");
136
137 if (op->sig==icSigIfOp || op->sig==icSigSelectOp)
138 printf("\n");
139 fflush(stdout);
140
141 return false;
142 }
@ icSigDataOp
Definition IccMpeCalc.h:112
@ icSigSelectOp
Definition IccMpeCalc.h:214
@ icSigIfOp
Definition IccMpeCalc.h:210
icSigCalcOp sig
Definition IccMpeCalc.h:233
void Describe(std::string &desc, int nVerboseness=100)
Name: SIccCalcOp::Describe.
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::Describe(), icSigDataOp, icSigIfOp, icSigSelectOp, SIccOpState::pStack, and SIccCalcOp::sig.

+ Here is the call graph for this function:

◆ BeforeOp()

virtual bool CIccConsoleDebugger::BeforeOp ( SIccCalcOp * op,
SIccOpState & os,
SIccCalcOp * ops )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 105 of file IccMpeCalc.cpp.

106 {
107 if (op->sig == icSigIfOp || op->sig == icSigSelectOp) {
108 printf("Start:");
109 std::string opDesc;
110 op->Describe(opDesc, 100); // TODO - propogate nVerboseness
111 printf("%9s\t", opDesc.c_str());
112 for (int j = 0; j < (int)os.pStack->size(); j++)
113 printf(" %.4f", (*os.pStack)[j]);
114 printf("\n");
115 }
116 return false;
117 }

References SIccCalcOp::Describe(), icSigIfOp, icSigSelectOp, SIccOpState::pStack, and SIccCalcOp::sig.

+ Here is the call graph for this function:

◆ BeginApply()

virtual void CIccConsoleDebugger::BeginApply ( )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 94 of file IccMpeCalc.cpp.

95 {
96 printf("\nBegin Calc Apply\n");
97 }

◆ EndApply()

virtual void CIccConsoleDebugger::EndApply ( )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 99 of file IccMpeCalc.cpp.

100 {
101 printf("End Calculator Apply\n\n");
102 fflush(stdout);
103 }

◆ Error()

virtual void CIccConsoleDebugger::Error ( const char * szMsg)
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 143 of file IccMpeCalc.cpp.

144 {
145 printf("%s\n", szMsg);
146 }

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