Printer is a static class that allows printing to logs or stdout/stderr.
More...
|
|
static DUCKDB_API void | Print (OutputStream stream, const string &str) |
| | Print the object to the stream.
|
| |
|
static DUCKDB_API void | Print (const string &str) |
| | Print the object to stderr.
|
| |
| template<typename... ARGS> |
| static void | PrintF (OutputStream stream, const string &str, ARGS... params) |
| | Print the formatted object to the stream.
|
| |
| template<typename... ARGS> |
| static void | PrintF (const string &str, ARGS... params) |
| | Print the formatted object to stderr.
|
| |
|
static DUCKDB_API void | RawPrint (OutputStream stream, const string &str) |
| | Directly prints the string to stdout without a newline.
|
| |
|
static DUCKDB_API void | Flush (OutputStream stream) |
| | Flush an output stream.
|
| |
|
static DUCKDB_API bool | IsTerminal (OutputStream stream) |
| | Whether or not we are printing to a terminal.
|
| |
|
static DUCKDB_API idx_t | TerminalWidth () |
| | The terminal width.
|
| |
|
|
static line_printer_f | line_printer |
| |
Printer is a static class that allows printing to logs or stdout/stderr.
◆ PrintF() [1/2]
template<typename... ARGS>
| static void duckdb::Printer::PrintF |
( |
OutputStream |
stream, |
|
|
const string & |
str, |
|
|
ARGS... |
params |
|
) |
| |
|
inlinestatic |
Print the formatted object to the stream.
41937 {
41939 }
static DUCKDB_API void Print(OutputStream stream, const string &str)
Print the object to the stream.
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
PyParams params(const std::string &tag, const std::string &model, const std::string &weights, const std::string &device)
◆ PrintF() [2/2]
template<typename... ARGS>
Print the formatted object to stderr.
41942 {
41943 Printer::PrintF(OutputStream::STREAM_STDERR, str, std::forward<ARGS>(params)...);
41944 }
static void PrintF(OutputStream stream, const string &str, ARGS... params)
Print the formatted object to the stream.
Definition duckdb.hpp:41937
The documentation for this class was generated from the following file: