Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:08

0001 #pragma once
0002 /**
0003 QDebug.hh : manages qdebug.h instance
0004 ============================================
0005 
0006 The hostside qdebug.h instance *dbg* is populated by QDebug::MakeInstance
0007 then uploaded to the device *d_dbg* by QDebug::QDebug 
0008 
0009 qdebug avoids having to play pass the parameter thru multiple levels of calls  
0010 to get values onto the device 
0011 
0012 Notice how NOT using pointers in qdebug provides a simple plain old struct way 
0013 to get structured info onto the device. 
0014 
0015 **/
0016 
0017 struct qdebug ; 
0018 
0019 
0020 #include <string>
0021 #include "plog/Severity.h"
0022 #include "QUDARAP_API_EXPORT.hh"
0023 
0024 
0025 struct QUDARAP_API QDebug
0026 {
0027     static const plog::Severity LEVEL ; 
0028     static const QDebug* INSTANCE ; 
0029     static const QDebug* Get(); 
0030     static qdebug* MakeInstance(); 
0031 
0032     QDebug(); 
0033 
0034     qdebug*      dbg ; 
0035     qdebug*      d_dbg ;
0036     qdebug*   getDevicePtr() const ;
0037 
0038     std::string desc() const ; 
0039 
0040 }; 
0041 
0042