mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
WIP
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#ifdef FIFODEBUG
|
||||
@ -22,8 +22,8 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
#define TOSTRING(x) STRINGIFY(x)
|
||||
// #define STRINGIFY(x) #x
|
||||
// #define TOSTRING(x) STRINGIFY(x)
|
||||
#define MYCONCAT(x,y)
|
||||
#define __AT__ std::string(__FILE__) + std::string("::") + std::string(__func__) + std::string("(): ")
|
||||
#define __SHORT_FORM_OF_FILE__ \
|
||||
@ -162,13 +162,23 @@ inline FILE*& Output2FILE::Stream()
|
||||
return pStream;
|
||||
}
|
||||
|
||||
// inline void Output2FILE::Output(const std::string& msg)
|
||||
// {
|
||||
// FILE* pStream = Stream();
|
||||
// if (!pStream)
|
||||
// return;
|
||||
// fprintf(pStream, "%s", msg.c_str());
|
||||
// fflush(pStream);
|
||||
// }
|
||||
|
||||
inline void Output2FILE::Output(const std::string& msg)
|
||||
{
|
||||
FILE* pStream = Stream();
|
||||
if (!pStream)
|
||||
return;
|
||||
fprintf(pStream, "%s", msg.c_str());
|
||||
fflush(pStream);
|
||||
std::cout << msg;
|
||||
// FILE* pStream = Stream();
|
||||
// if (!pStream)
|
||||
// return;
|
||||
// fprintf(pStream, "%s", msg.c_str());
|
||||
// fflush(pStream);
|
||||
}
|
||||
|
||||
inline void Output2FILE::Output(const std::string& msg, TLogLevel level)
|
||||
|
Reference in New Issue
Block a user