ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CVLog.cpp File Reference
#include "CVLog.h"
#include <CVPlatform.h>
#include <algorithm>
#include <cassert>
#include <vector>
Include dependency graph for CVLog.cpp:

Go to the source code of this file.

Classes

struct  Message
 Message. More...
 

Macros

#define _vsnprintf   vsnprintf
 
#define LOG_ARGS(flags)
 

Variables

static const size_t s_bufferMaxSize = 4096
 
static char s_buffer [s_bufferMaxSize]
 
static bool s_backupEnabled
 
static std::vector< Messages_backupMessages
 
static int s_verbosityLevel = CVLog::LOG_STANDARD
 
static CVLogs_instance = nullptr
 

Macro Definition Documentation

◆ _vsnprintf

#define _vsnprintf   vsnprintf

Definition at line 19 of file CVLog.cpp.

◆ LOG_ARGS

#define LOG_ARGS (   flags)
Value:
va_list args; \
va_start(args, format); \
_vsnprintf(s_buffer, s_bufferMaxSize, format, args); \
va_end(args); \
LogMessage(QString(s_buffer), flags); \
}
static bool s_backupEnabled
Definition: CVLog.cpp:39
static char s_buffer[s_bufferMaxSize]
Definition: CVLog.cpp:28
static const size_t s_bufferMaxSize
Definition: CVLog.cpp:27
static CVLog * s_instance
Definition: CVLog.cpp:51
filament::Texture::InternalFormat format

Definition at line 94 of file CVLog.cpp.

Variable Documentation

◆ s_backupEnabled

bool s_backupEnabled
static

Definition at line 39 of file CVLog.cpp.

Referenced by CVLog::EnableMessageBackup(), and CVLog::LogMessage().

◆ s_backupMessages

std::vector<Message> s_backupMessages
static

Definition at line 41 of file CVLog.cpp.

Referenced by CVLog::LogMessage(), and CVLog::RegisterInstance().

◆ s_buffer

char s_buffer[s_bufferMaxSize]
static

Definition at line 28 of file CVLog.cpp.

◆ s_bufferMaxSize

const size_t s_bufferMaxSize = 4096
static

Definition at line 27 of file CVLog.cpp.

◆ s_instance

CVLog* s_instance = nullptr
static

Definition at line 51 of file CVLog.cpp.

Referenced by CVLog::LogMessage(), CVLog::RegisterInstance(), and CVLog::TheInstance().

◆ s_verbosityLevel

int s_verbosityLevel = CVLog::LOG_STANDARD
static

Definition at line 47 of file CVLog.cpp.

Referenced by CVLog::LogMessage(), CVLog::SetVerbosityLevel(), and CVLog::VerbosityLevel().