Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::CallbackLogStorage Class Reference
Inheritance diagram for duckdb::CallbackLogStorage:
Collaboration diagram for duckdb::CallbackLogStorage:

Public Member Functions

 CallbackLogStorage (const string &name, duckdb_logger_write_log_entry_t write_log_entry_fun, void *extra_data, duckdb_delete_callback_t delete_callback)
void WriteLogEntry (timestamp_t timestamp, LogLevel level, const string &log_type, const string &log_message, const RegisteredLoggingContext &context) override
 WRITING.
void WriteLogEntries (DataChunk &chunk, const RegisteredLoggingContext &context) override
void Flush (LoggingTargetTable table) override
void FlushAll () override
bool IsEnabled (LoggingTargetTable table) override
const string GetStorageName () override
Public Member Functions inherited from duckdb::LogStorage
virtual DUCKDB_API void Truncate ()
virtual DUCKDB_API bool CanScan (LoggingTargetTable table)
 READING (OPTIONAL).
virtual DUCKDB_API unique_ptr< LogStorageScanState > CreateScanState (LoggingTargetTable table) const
virtual DUCKDB_API bool Scan (LogStorageScanState &state, DataChunk &result) const
virtual DUCKDB_API void InitializeScan (LogStorageScanState &state) const
virtual DUCKDB_API unique_ptr< TableRef > BindReplace (ClientContext &context, TableFunctionBindInput &input, LoggingTargetTable table)
virtual DUCKDB_API void UpdateConfig (DatabaseInstance &db, case_insensitive_map_t< Value > &config)
 CONFIGURATION.

Private Attributes

const string name
duckdb_logger_write_log_entry_t write_log_entry_fun
void * extra_data
duckdb_delete_callback_t delete_callback

Additional Inherited Members

Static Public Member Functions inherited from duckdb::LogStorage
static vector< LogicalType > GetSchema (LoggingTargetTable table)
static vector< string > GetColumnNames (LoggingTargetTable table)

Constructor & Destructor Documentation

◆ CallbackLogStorage()

duckdb::CallbackLogStorage::CallbackLogStorage ( const string & name,
duckdb_logger_write_log_entry_t write_log_entry_fun,
void * extra_data,
duckdb_delete_callback_t delete_callback )
inline
268360 : name(name), write_log_entry_fun(write_log_entry_fun), extra_data(extra_data),
268361 delete_callback(delete_callback) {
268362 }

◆ ~CallbackLogStorage()

duckdb::CallbackLogStorage::~CallbackLogStorage ( )
inlineoverride
268364 {
268365 if (!extra_data || !delete_callback) {
268366 return;
268367 }
268368 delete_callback(extra_data);
268369 }

Member Function Documentation

◆ WriteLogEntry()

void duckdb::CallbackLogStorage::WriteLogEntry ( timestamp_t timestamp,
LogLevel level,
const string & log_type,
const string & log_message,
const RegisteredLoggingContext & context )
inlineoverridevirtual

WRITING.

Implements duckdb::LogStorage.

268372 {
268373 if (write_log_entry_fun == nullptr) {
268374 return;
268375 }
268376 auto c_timestamp = reinterpret_cast<duckdb_timestamp *>(&timestamp);
268377 write_log_entry_fun(extra_data, c_timestamp, EnumUtil::ToChars(level), log_type.c_str(), log_message.c_str());
268378 };
cv::GOpaque< int64_t > timestamp(G g)

◆ WriteLogEntries()

void duckdb::CallbackLogStorage::WriteLogEntries ( DataChunk & chunk,
const RegisteredLoggingContext & context )
inlineoverridevirtual

Implements duckdb::LogStorage.

268380{};

◆ Flush()

void duckdb::CallbackLogStorage::Flush ( LoggingTargetTable table)
inlineoverridevirtual

Implements duckdb::LogStorage.

268382{};

◆ FlushAll()

void duckdb::CallbackLogStorage::FlushAll ( )
inlineoverridevirtual

Implements duckdb::LogStorage.

268384{};

◆ IsEnabled()

bool duckdb::CallbackLogStorage::IsEnabled ( LoggingTargetTable table)
inlineoverridevirtual

Implements duckdb::LogStorage.

268386 {
268387 return true;
268388 }

◆ GetStorageName()

const string duckdb::CallbackLogStorage::GetStorageName ( )
inlineoverridevirtual

Implements duckdb::LogStorage.

268390 {
268391 return name;
268392 }

The documentation for this class was generated from the following file: