#include <VP1Msg.h>
|
| static bool | verbose () |
| static bool | debug () |
| static void | enableMsg (const QString &) |
| static void | message (const QString &, IVP1System *sys=0) |
| static void | messageDebug (const QString &) |
| static void | messageWarning (const QString &, IVP1System *sys=0) |
| static void | messageVerbose (const QString &) |
| static void | messageWarningRed (const QString &str, IVP1System *sys=0) |
| static void | messageWarningAllRed (const QString &str, IVP1System *sys=0) |
| static void | message (const QStringList &, const QString &addtoend="", IVP1System *sys=0) |
| static void | messageDebug (const QStringList &, const QString &addtoend="") |
| static void | messageVerbose (const QStringList &, const QString &addtoend="") |
| static void | message (const QString &addtostart, const QStringList &, const QString &addtoend="", IVP1System *sys=0) |
| static void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") |
| static void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") |
| static const char * | prefix_msg () |
| static const char * | prefix_debug () |
| static const char * | prefix_warning () |
| static const char * | prefix_verbose () |
| static QString | str (const QString &s) |
| static QString | str (const char *c) |
| static QString | str (const bool b) |
| static QString | str (const QColor &) |
| static QString | str (const SbColor &) |
| static QString | str (const VP1Interval &) |
| static QString | str (const SbVec2d &) |
| static QString | str (const SbVec2f &) |
| static QString | str (const SbVec2s &) |
| static QString | str (const SbVec3d &) |
| static QString | str (const SbVec3f &) |
| static QString | str (const SbVec3s &) |
| static QString | str (const SbVec4d &) |
| static QString | str (const SbVec4f &) |
| static QString | str (short int n) |
| static QString | str (unsigned short int n) |
| static QString | str (long n) |
| static QString | str (ulong n) |
| static QString | str (int n) |
| static QString | str (uint n) |
| static QString | str (qlonglong n) |
| static QString | str (qulonglong n) |
| static QString | str (const double &d) |
| static QString | str (const float &f) |
| static QString | str (const void *) |
| template<class T> |
| static QString | str (const T *t) |
| template<class T> |
| static QString | str (const QFlags< T > &f) |
| template<class T> |
| static QString | str (const HepGeom::BasicVector3D< T > &t) |
| static QString | str (const Amg::Vector3D &t) |
| template<class T> |
| static QString | str (const QList< T > &t) |
Definition at line 29 of file VP1Msg.h.
◆ VP1Msg()
◆ ~VP1Msg()
◆ debug()
Definition at line 32 of file VP1Msg.h.
static std::atomic< bool > m_debug
◆ enableMsg()
| void VP1Msg::enableMsg |
( |
const QString & | name | ) |
|
|
static |
Definition at line 198 of file VP1Msg.cxx.
198 {
199 if( name == "VP1_VERBOSE_OUTPUT"){
201 } else {
203 }
204}
static std::atomic< bool > m_verbose
static bool environmentVariableIsSet(const QString &name)
◆ message() [1/3]
| void VP1Msg::message |
( |
const QString & | str, |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 30 of file VP1Msg.cxx.
31{
32 if (sys)
34 else
35 std::cout <<
prefix_msg() <<
": "<<
str.toStdString()<<std::endl;
36}
static const char * prefix_msg()
static QString str(const QString &s)
◆ message() [2/3]
| void VP1Msg::message |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "", |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 135 of file VP1Msg.cxx.
137{
138 if (addtostart.isEmpty()) {
140 return;
141 }
142 if (addtoend.isEmpty()) {
143 for (const QString& s : l)
145 } else {
146 for (const QString& s : l)
147 message(addtostart+s+addtoend,sys);
148 }
149}
static void message(const QString &, IVP1System *sys=0)
◆ message() [3/3]
| void VP1Msg::message |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "", |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 93 of file VP1Msg.cxx.
94{
95 if (addtoend.isEmpty()) {
96 for (const QString& s : l)
98 } else {
99 for (const QString& s : l)
101 }
102}
◆ messageDebug() [1/3]
| void VP1Msg::messageDebug |
( |
const QString & | str | ) |
|
|
static |
Definition at line 39 of file VP1Msg.cxx.
40{
42 return;
43 }
45}
static const char * prefix_debug()
◆ messageDebug() [2/3]
| void VP1Msg::messageDebug |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) |
|
static |
Definition at line 152 of file VP1Msg.cxx.
153{
155 return;
156 }
157 if (addtostart.isEmpty()) {
159 return;
160 }
161 if (addtoend.isEmpty()) {
162 for (const QString& s : l)
164 } else {
165 for (const QString& s : l)
167 }
168}
static void messageDebug(const QString &)
◆ messageDebug() [3/3]
| void VP1Msg::messageDebug |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) |
|
static |
Definition at line 105 of file VP1Msg.cxx.
106{
108 return;
109 }
110 if (addtoend.isEmpty()) {
111 for (const QString& s : l)
113 } else {
114 for (const QString& s : l)
116 }
117}
◆ messageVerbose() [1/3]
| void VP1Msg::messageVerbose |
( |
const QString & | str | ) |
|
|
static |
Definition at line 84 of file VP1Msg.cxx.
85{
87 return;
88 }
90}
static const char * prefix_verbose()
◆ messageVerbose() [2/3]
| void VP1Msg::messageVerbose |
( |
const QString & | addtostart, |
|
|
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) |
|
static |
Definition at line 171 of file VP1Msg.cxx.
172{
174 return;
175 }
176 if (addtostart.isEmpty()) {
178 return;
179 }
180 if (addtoend.isEmpty()) {
181 for (const QString& s : l)
183 } else {
184 for (const QString& s : l)
186 }
187}
static void messageVerbose(const QString &)
◆ messageVerbose() [3/3]
| void VP1Msg::messageVerbose |
( |
const QStringList & | l, |
|
|
const QString & | addtoend = "" ) |
|
static |
Definition at line 120 of file VP1Msg.cxx.
121{
123 return;
124 }
125 if (addtoend.isEmpty()) {
126 for (const QString& s : l)
128 } else {
129 for (const QString& s : l)
131 }
132}
◆ messageWarning()
| void VP1Msg::messageWarning |
( |
const QString & | str, |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 48 of file VP1Msg.cxx.
49{
50 if (sys)
53}
static const char * prefix_warning()
◆ messageWarningAllRed()
| void VP1Msg::messageWarningAllRed |
( |
const QString & | str, |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 70 of file VP1Msg.cxx.
71{
72 if (sys)
74
75
76
77
78 std::string
msg =
str.toStdString();
79 fprintf(stderr,
"\033[1m\033[31mWarning:\033[21m %s\033[0m\n",
msg.c_str() );
80}
◆ messageWarningRed()
| void VP1Msg::messageWarningRed |
( |
const QString & | str, |
|
|
IVP1System * | sys = 0 ) |
|
static |
Definition at line 57 of file VP1Msg.cxx.
58{
59 if (sys)
61
62
63
64
65 std::string
msg =
str.toStdString();
66 fprintf(stderr,
"\033[1m\033[31mWarning:\033[21m\033[0m: %s\n",
msg.c_str() );
67}
◆ prefix_debug()
| const char * VP1Msg::prefix_debug |
( |
| ) |
|
|
inlinestatic |
Definition at line 57 of file VP1Msg.h.
57{ return "VP1MSG_DEBUG";}
◆ prefix_msg()
| const char * VP1Msg::prefix_msg |
( |
| ) |
|
|
inlinestatic |
Definition at line 56 of file VP1Msg.h.
56{ return "VP1MESSAGE";}
◆ prefix_verbose()
| const char * VP1Msg::prefix_verbose |
( |
| ) |
|
|
inlinestatic |
Definition at line 59 of file VP1Msg.h.
59{ return "VP1MSG_VERBOSE";}
◆ prefix_warning()
| const char * VP1Msg::prefix_warning |
( |
| ) |
|
|
inlinestatic |
Definition at line 58 of file VP1Msg.h.
58{ return "VP1MSG_WARNING";}
◆ str() [1/30]
◆ str() [2/30]
| QString VP1String::str |
( |
const bool | b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53{
return b?
"True":
"False"; }
◆ str() [3/30]
| QString VP1String::str |
( |
const char * | c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
| QString VP1String::str |
( |
const double & | d | ) |
|
|
inlinestaticinherited |
Definition at line 81 of file VP1String.h.
81{ return QString::number(d); }
◆ str() [5/30]
| QString VP1String::str |
( |
const float & | f | ) |
|
|
inlinestaticinherited |
Definition at line 82 of file VP1String.h.
82{ return QString::number(f); }
◆ str() [6/30]
◆ str() [7/30]
| QString VP1String::str |
( |
const QColor & | c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
31{
32 return c.isValid() ?
c.name() :
"Invalid";
33}
◆ str() [8/30]
template<class T>
| QString VP1String::str |
( |
const QFlags< T > & | f | ) |
|
|
inlinestaticinherited |
Definition at line 91 of file VP1String.h.
91{ return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }
◆ str() [9/30]
template<class T>
| QString VP1String::str |
( |
const QList< T > & | t | ) |
|
|
inlinestaticinherited |
Definition at line 102 of file VP1String.h.
102{
return "QList of size"+QString::number(
t.size()); }
◆ str() [10/30]
| QString VP1String::str |
( |
const QString & | s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
| QString VP1String::str |
( |
const SbColor & | c | ) |
|
|
staticinherited |
Definition at line 36 of file VP1String.cxx.
37{
39}
static QColor sbcol2qcol(const SbColor &)
◆ str() [12/30]
| QString VP1String::str |
( |
const SbVec2d & | v | ) |
|
|
staticinherited |
◆ str() [13/30]
| QString VP1String::str |
( |
const SbVec2f & | v | ) |
|
|
staticinherited |
◆ str() [14/30]
| QString VP1String::str |
( |
const SbVec2s & | v | ) |
|
|
staticinherited |
◆ str() [15/30]
| QString VP1String::str |
( |
const SbVec3d & | v | ) |
|
|
staticinherited |
◆ str() [16/30]
| QString VP1String::str |
( |
const SbVec3f & | v | ) |
|
|
staticinherited |
◆ str() [17/30]
| QString VP1String::str |
( |
const SbVec3s & | v | ) |
|
|
staticinherited |
◆ str() [18/30]
| QString VP1String::str |
( |
const SbVec4d & | v | ) |
|
|
staticinherited |
◆ str() [19/30]
| QString VP1String::str |
( |
const SbVec4f & | v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T>
| QString VP1String::str |
( |
const T * | t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87{
return str(
static_cast<const void*
>(t)); }
◆ str() [21/30]
| QString VP1String::str |
( |
const void * | p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
49{
50 if (p) {
53
54 return QString (
s.str().c_str());
55 } else {
56 return "NULL";
57 }
58}
◆ str() [22/30]
◆ str() [23/30]
| QString VP1String::str |
( |
int | n | ) |
|
|
inlinestaticinherited |
Definition at line 77 of file VP1String.h.
77{ return QString::number(n); }
◆ str() [24/30]
| QString VP1String::str |
( |
long | n | ) |
|
|
inlinestaticinherited |
Definition at line 75 of file VP1String.h.
75{ return QString::number(n); }
◆ str() [25/30]
| QString VP1String::str |
( |
qlonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 79 of file VP1String.h.
79{ return QString::number(n); }
◆ str() [26/30]
| QString VP1String::str |
( |
qulonglong | n | ) |
|
|
inlinestaticinherited |
Definition at line 80 of file VP1String.h.
80{ return QString::number(n); }
◆ str() [27/30]
| QString VP1String::str |
( |
short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 73 of file VP1String.h.
73{ return QString::number(n); }
◆ str() [28/30]
| QString VP1String::str |
( |
uint | n | ) |
|
|
inlinestaticinherited |
Definition at line 78 of file VP1String.h.
78{ return QString::number(n); }
◆ str() [29/30]
| QString VP1String::str |
( |
ulong | n | ) |
|
|
inlinestaticinherited |
Definition at line 76 of file VP1String.h.
76{ return QString::number(n); }
◆ str() [30/30]
| QString VP1String::str |
( |
unsigned short int | n | ) |
|
|
inlinestaticinherited |
Definition at line 74 of file VP1String.h.
74{ return QString::number(n); }
◆ verbose()
◆ m_debug
◆ m_verbose
The documentation for this class was generated from the following files: