ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
logging.h File Reference
#include <glog/logging.h>
#include <iostream>
#include "util/string.h"
Include dependency graph for logging.h:

Go to the source code of this file.

Namespaces

 colmap
 

Macros

#define CHECK_OPTION_IMPL(expr)    __CheckOptionImpl(__FILE__, __LINE__, (expr), #expr)
 
#define CHECK_OPTION(expr)
 
#define CHECK_OPTION_OP(name, op, val1, val2)
 
#define CHECK_OPTION_EQ(val1, val2)   CHECK_OPTION_OP(_EQ, ==, val1, val2)
 
#define CHECK_OPTION_NE(val1, val2)   CHECK_OPTION_OP(_NE, !=, val1, val2)
 
#define CHECK_OPTION_LE(val1, val2)   CHECK_OPTION_OP(_LE, <=, val1, val2)
 
#define CHECK_OPTION_LT(val1, val2)   CHECK_OPTION_OP(_LT, <, val1, val2)
 
#define CHECK_OPTION_GE(val1, val2)   CHECK_OPTION_OP(_GE, >=, val1, val2)
 
#define CHECK_OPTION_GT(val1, val2)   CHECK_OPTION_OP(_GT, >, val1, val2)
 

Functions

void colmap::InitializeGlog (char **argv)
 
const char * colmap::__GetConstFileBaseName (const char *file)
 
bool colmap::__CheckOptionImpl (const char *file, const int line, const bool result, const char *expr_str)
 
template<typename T1 , typename T2 >
bool colmap::__CheckOptionOpImpl (const char *file, const int line, const bool result, const T1 &val1, const T2 &val2, const char *val1_str, const char *val2_str, const char *op_str)
 

Macro Definition Documentation

◆ CHECK_OPTION

#define CHECK_OPTION (   expr)
Value:
if (!__CheckOptionImpl(__FILE__, __LINE__, (expr), #expr)) { \
return false; \
}
bool __CheckOptionImpl(const char *file, const int line, const bool result, const char *expr_str)
Definition: logging.cc:51

Definition at line 20 of file logging.h.

◆ CHECK_OPTION_EQ

#define CHECK_OPTION_EQ (   val1,
  val2 
)    CHECK_OPTION_OP(_EQ, ==, val1, val2)

Definition at line 29 of file logging.h.

◆ CHECK_OPTION_GE

#define CHECK_OPTION_GE (   val1,
  val2 
)    CHECK_OPTION_OP(_GE, >=, val1, val2)

Definition at line 33 of file logging.h.

◆ CHECK_OPTION_GT

#define CHECK_OPTION_GT (   val1,
  val2 
)    CHECK_OPTION_OP(_GT, >, val1, val2)

Definition at line 34 of file logging.h.

◆ CHECK_OPTION_IMPL

#define CHECK_OPTION_IMPL (   expr)     __CheckOptionImpl(__FILE__, __LINE__, (expr), #expr)

Definition at line 18 of file logging.h.

◆ CHECK_OPTION_LE

#define CHECK_OPTION_LE (   val1,
  val2 
)    CHECK_OPTION_OP(_LE, <=, val1, val2)

Definition at line 31 of file logging.h.

◆ CHECK_OPTION_LT

#define CHECK_OPTION_LT (   val1,
  val2 
)    CHECK_OPTION_OP(_LT, <, val1, val2)

Definition at line 32 of file logging.h.

◆ CHECK_OPTION_NE

#define CHECK_OPTION_NE (   val1,
  val2 
)    CHECK_OPTION_OP(_NE, !=, val1, val2)

Definition at line 30 of file logging.h.

◆ CHECK_OPTION_OP

#define CHECK_OPTION_OP (   name,
  op,
  val1,
  val2 
)
Value:
if (!__CheckOptionOpImpl(__FILE__, __LINE__, (val1 op val2), val1, val2, \
#val1, #val2, #op)) { \
return false; \
}
bool __CheckOptionOpImpl(const char *file, const int line, const bool result, const T1 &val1, const T2 &val2, const char *val1_str, const char *val2_str, const char *op_str)
Definition: logging.h:53

Definition at line 24 of file logging.h.