예제 #1
0
void CDebugDumpable::DebugDumpFormat(CDebugDumpFormatter& ddf,
                                     const string&        bundle,
                                     unsigned int         depth)
    const
{
    if ( sm_DumpEnabled ) {
        CDebugDumpContext ddc(ddf, bundle);
        DebugDump(ddc, depth);
    }
}
예제 #2
0
int ddc_waveform( doublewf_t *w, double frequency, filter_t *filt, complexwf_t *dc,
		  doublewf_t *buf_re, doublewf_t *buf_im  ) {

  if ( ! w || ! filt || ! dc ) {
    bpm_error( "Invalid waveform pointer in ddc_waveform(...)",
	       __FILE__, __LINE__ );
    return BPM_FAILURE;
  }
  
  return ddc( w, frequency, filt, dc, buf_re, buf_im );
}
예제 #3
0
void CDebugDumpContext::Log(const string& name, const CDebugDumpable* value,
                            unsigned int depth)
{
    if (depth != 0  &&  value) {
        CDebugDumpContext ddc(*this, name);
        value->DebugDump(ddc, depth - 1);
    } else {
        Log(name, NStr::PtrToString(static_cast<const void*> (value)),
            CDebugDumpFormatter::ePointer);
    }
}