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

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)
 
void reset ()
 
virtual ~CIccLogDebugger ()
 
- Public Member Functions inherited from IIccCalcDebugger
virtual ~IIccCalcDebugger ()
 

Public Attributes

std::list< std::string > m_log
 

Additional Inherited Members

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

Detailed Description

Definition at line 93 of file iccApplyNamedCmm.cpp.

Constructor & Destructor Documentation

◆ ~CIccLogDebugger()

virtual CIccLogDebugger::~CIccLogDebugger ( )
inlinevirtual

Definition at line 97 of file iccApplyNamedCmm.cpp.

97{}

Member Function Documentation

◆ AfterOp()

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

Implements IIccCalcDebugger.

Definition at line 135 of file iccApplyNamedCmm.cpp.

136 {
137 std::string str;
138 char buf[200];
139 if (op->sig == icSigDataOp) {
140 sprintf(buf, "%13s ", "data");
141 str = buf;
142 }
143 else {
144 bool bEnd = false;
145 if (op->sig == icSigIfOp || op->sig == icSigSelectOp) {
146 str += "End: ";
147 bEnd = true;
148 }
149 std::string opDesc;
150 op->Describe(opDesc, 100);
151
152 if (bEnd)
153 sprintf(buf, "%7s ", opDesc.c_str());
154 else
155 sprintf(buf, "%13s ", opDesc.c_str());
156 str += buf;
157 }
158
159 for (int j = 0; j < (int)os.pStack->size(); j++) {
160 sprintf(buf, " %.4f", (*os.pStack)[j]);
161 str += buf;
162 }
163 m_log.push_back(str);
164
165 if (op->sig == icSigIfOp || op->sig == icSigSelectOp)
166 m_log.push_back("");
167
168 return false;
169 }
@ icSigDataOp
Definition IccMpeCalc.h:112
@ icSigSelectOp
Definition IccMpeCalc.h:214
@ icSigIfOp
Definition IccMpeCalc.h:210
std::list< std::string > m_log
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, m_log, SIccOpState::pStack, and SIccCalcOp::sig.

+ Here is the call graph for this function:

◆ BeforeOp()

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

Implements IIccCalcDebugger.

Definition at line 117 of file iccApplyNamedCmm.cpp.

118 {
119 if (op->sig == icSigIfOp || op->sig == icSigSelectOp) {
120 std::string str = "Start:";
121 std::string opDesc;
122 op->Describe(opDesc, 100);
123 char buf[200];
124 sprintf(buf, "%7s ", opDesc.c_str());
125 str += buf;
126 for (int j = 0; j < (int)os.pStack->size(); j++) {
127 sprintf(buf, " %.4f", (*os.pStack)[j]);
128 str += buf;
129 }
130 m_log.push_back(str);
131 }
132 return false;
133 }

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

+ Here is the call graph for this function:

◆ BeginApply()

virtual void CIccLogDebugger::BeginApply ( )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 106 of file iccApplyNamedCmm.cpp.

107 {
108 m_log.push_back("Begin Calc Apply");
109 }

References m_log.

◆ EndApply()

virtual void CIccLogDebugger::EndApply ( )
inlinevirtual

Implements IIccCalcDebugger.

Definition at line 111 of file iccApplyNamedCmm.cpp.

112 {
113 m_log.push_back("End Calculator Apply");
114 m_log.push_back("");
115 }

References m_log.

◆ Error()

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

Implements IIccCalcDebugger.

Definition at line 170 of file iccApplyNamedCmm.cpp.

171 {
172 m_log.push_back(szMsg);
173 }

References m_log.

◆ reset()

void CIccLogDebugger::reset ( )
inline

Definition at line 99 of file iccApplyNamedCmm.cpp.

100 {
101 m_log.clear();
102 }

References m_log.

Member Data Documentation

◆ m_log

std::list<std::string> CIccLogDebugger::m_log

Definition at line 104 of file iccApplyNamedCmm.cpp.

Referenced by AfterOp(), BeforeOp(), BeginApply(), EndApply(), Error(), and reset().


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