ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
spdmon.hpp File Reference
#include <array>
#include <atomic>
#include <fmt/core.h>
#include <iostream>
#include <iterator>
#include <list>
#include <memory>
#include <mutex>
#include <string>
#include <spdlog/common.h>
#include <spdlog/details/console_globals.h>
#include <spdlog/details/null_mutex.h>
#include <spdlog/details/os.h>
#include <spdlog/fmt/chrono.h>
#include <spdlog/pattern_formatter.h>
#include <spdlog/sinks/ansicolor_sink.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/sink.h>
#include <spdlog/sinks/stdout_sinks.h>
#include <spdlog/spdlog.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <unistd.h>
Include dependency graph for spdmon.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  spdmon::BaseProgress
class  spdmon::Progress
class  spdmon::StatusLineRegistry
class  spdmon::StatusLine
class  spdmon::SigwinchMixin
class  spdmon::TerminalSink< ConsoleMutex >
class  spdmon::LoggerProgress
class  spdmon::IterableProgressMonitor< Iterable >

Namespaces

namespace  spdmon

Macros

#define SPDMON_DECLARE_NON_COPYABLE(classInst)
#define SPDMON_DECLARE_NON_MOVEABLE(classInst)
#define SPDMON_DECLARE_DEFAULT_COPYABLE(classInst)
#define SPDMON_DECLARE_DEFAULT_MOVEABLE(classInst)
#define IS_ONE_OF_TYPE(sink)

Typedefs

using spdmon::terminal_stdout_sink_mt = TerminalSink<spdlog::details::console_mutex>
using spdmon::terminal_stdout_sink_st
using spdmon::terminal_stderr_sink_mt = TerminalSink<spdlog::details::console_mutex>
using spdmon::terminal_stderr_sink_st

Functions

template<typename Factory = spdlog::default_factory>
std::shared_ptr< spdlog::logger > spdmon::stdout_terminal_mt (const std::string &logger_name)
template<typename Factory = spdlog::default_factory>
std::shared_ptr< spdlog::logger > spdmon::stderr_terminal_mt (const std::string &logger_name)
template<typename Factory = spdlog::default_factory>
std::shared_ptr< spdlog::logger > spdmon::stdout_terminal_st (const std::string &logger_name)
template<typename Factory = spdlog::default_factory>
std::shared_ptr< spdlog::logger > spdmon::stderr_terminal_st (const std::string &logger_name)
template<typename Iterable>
auto spdmon::LogProgress (Iterable &&iter) -> IterableProgressMonitor< Iterable >

Variables

static const char * spdmon::kBarSymsUnicode []
static const char * spdmon::kBarSymsAscii []

Macro Definition Documentation

◆ IS_ONE_OF_TYPE

#define IS_ONE_OF_TYPE ( sink)
Value:
(typeid(*(sink)) == typeid(spdlog::sinks::stdout_sink_st)) || \
(typeid(*(sink)) == typeid(spdlog::sinks::stdout_sink_mt)) || \
(typeid(*(sink)) == typeid(spdlog::sinks::ansicolor_stdout_sink_st)) || \
(typeid(*(sink)) == typeid(spdlog::sinks::ansicolor_stdout_sink_mt))

Definition at line 580 of file spdmon.hpp.

Referenced by spdmon::LoggerProgress::LoggerProgress().

◆ SPDMON_DECLARE_DEFAULT_COPYABLE

#define SPDMON_DECLARE_DEFAULT_COPYABLE ( classInst)
Value:
classInst(const classInst &other) = default; \
classInst &operator=(const classInst &other) = default;

Definition at line 60 of file spdmon.hpp.

◆ SPDMON_DECLARE_DEFAULT_MOVEABLE

#define SPDMON_DECLARE_DEFAULT_MOVEABLE ( classInst)
Value:
classInst(classInst &&other) noexcept = default; \
classInst &operator=(classInst &&other) noexcept = default;

Definition at line 68 of file spdmon.hpp.

◆ SPDMON_DECLARE_NON_COPYABLE

#define SPDMON_DECLARE_NON_COPYABLE ( classInst)
Value:
classInst(const classInst &other) = delete; \
classInst &operator=(const classInst &other) = delete;

Definition at line 44 of file spdmon.hpp.

Referenced by spdmon::TerminalSink< spdlog::details::console_mutex >::operator=().

◆ SPDMON_DECLARE_NON_MOVEABLE

#define SPDMON_DECLARE_NON_MOVEABLE ( classInst)
Value:
classInst(classInst &&other) noexcept = delete; \
classInst &operator=(classInst &&other) noexcept = delete;

Definition at line 52 of file spdmon.hpp.

Referenced by spdmon::LoggerProgress::LoggerProgress(), spdmon::Progress::operator=(), spdmon::SigwinchMixin::operator=(), spdmon::StatusLine::operator=(), spdmon::StatusLineRegistry::operator=(), and spdmon::TerminalSink< spdlog::details::console_mutex >::operator=().