ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
sqlite3_utils.h File Reference
#include <cstdio>
#include <cstdlib>
#include <string>
#include "SQLite/sqlite3.h"
Include dependency graph for sqlite3_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 colmap
 

Macros

#define SQLITE3_CALL(func)   SQLite3CallHelper(func, __FILE__, __LINE__)
 
#define SQLITE3_EXEC(database, sql, callback)
 

Functions

int colmap::SQLite3CallHelper (const int result_code, const std::string &filename, const int line_number)
 

Macro Definition Documentation

◆ SQLITE3_CALL

#define SQLITE3_CALL (   func)    SQLite3CallHelper(func, __FILE__, __LINE__)

Definition at line 33 of file sqlite3_utils.h.

◆ SQLITE3_EXEC

#define SQLITE3_EXEC (   database,
  sql,
  callback 
)
Value:
{ \
char* err_msg = nullptr; \
const int result_code = \
sqlite3_exec(database, sql, callback, nullptr, &err_msg); \
if (result_code != SQLITE_OK) { \
fprintf(stderr, "SQLite error [%s, line %i]: %s\n", __FILE__, \
__LINE__, err_msg); \
sqlite3_free(err_msg); \
} \
}
std::function< void(std::shared_ptr< core::Tensor >)> callback

Definition at line 35 of file sqlite3_utils.h.