BPS C++ API  2.24.4
bpstrace.h
Go to the documentation of this file.
1 
4 #ifndef BPSTRACE_H
5 #define BPSTRACE_H
6 
7 #include "bpscore_global.h"
8 #include "bpsdecimal.h"
9 
10 class BpsDecimal;
11 
26 {
28 public:
30  BpsTrace(const QString& aBlockName);
31  virtual ~BpsTrace();
32  static void trace(const char* aValue);
33  static void trace(const QByteArray& aValue);
34  static void trace(const QString& aValue);
35  static void trace(const BpsDecimal& aValue);
36  static void trace(int aValue);
38 }; // BpsTrace
39 
41 #ifdef BPSTRACE_ENABLE
42 #define BPSTRACEFUNC BpsTrace bpsTrace(qPrintable(__FUNCTION__));
43 #define BPSTRACEBLOCK(aName) BpsTrace bpsTrace(aName);
44 #define BPSTRACE(aValue) BpsTrace::trace(aValue);
45 #else
46 #define BPSTRACEFUNC
47 #define BPSTRACEBLOCK(aName)
48 #define BPSTRACE(aValue)
49 #endif // ENABLE_BPSTRACE
50 
51 #endif // BPSTRACE_H
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
Public include file for BpsDecimal class.
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
A class for decimal arithmetics.
Definition: bpsdecimal.h:87
Utilities to trace function calls and values while debugging.
Definition: bpstrace.h:26