HighFive 2.10.1
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
H5Utility.hpp File Reference
#include <functional>
#include <string>
#include <iostream>
#include "bits/h5e_wrapper.hpp"
#include "bits/H5Friends.hpp"
Include dependency graph for H5Utility.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HighFive::SilenceHDF5
 Utility class to disable HDF5 stack printing inside a scope. More...
 
class  HighFive::Logger
 A logger with supporting basic functionality. More...
 

Namespaces

namespace  HighFive
 

Macros

#define HIGHFIVE_LOG_LEVEL_DEBUG   10
 
#define HIGHFIVE_LOG_LEVEL_INFO   20
 
#define HIGHFIVE_LOG_LEVEL_WARN   30
 
#define HIGHFIVE_LOG_LEVEL_ERROR   40
 
#define HIGHFIVE_LOG_LEVEL   HIGHFIVE_LOG_LEVEL_WARN
 
#define HIGHFIVE_LOG_DEBUG(message)    ::HighFive::detail::log(::HighFive::LogSeverity::Debug, (message), __FILE__, __LINE__);
 
#define HIGHFIVE_LOG_DEBUG_IF(cond, message)
 
#define HIGHFIVE_LOG_INFO(message)    ::HighFive::detail::log(::HighFive::LogSeverity::Info, (message), __FILE__, __LINE__);
 
#define HIGHFIVE_LOG_INFO_IF(cond, message)
 
#define HIGHFIVE_LOG_WARN(message)    ::HighFive::detail::log(::HighFive::LogSeverity::Warn, (message), __FILE__, __LINE__);
 
#define HIGHFIVE_LOG_WARN_IF(cond, message)
 
#define HIGHFIVE_LOG_ERROR(message)    ::HighFive::detail::log(::HighFive::LogSeverity::Error, (message), __FILE__, __LINE__);
 
#define HIGHFIVE_LOG_ERROR_IF(cond, message)
 

Enumerations

enum class  HighFive::LogSeverity { HighFive::Debug = HIGHFIVE_LOG_LEVEL_DEBUG , HighFive::Info = HIGHFIVE_LOG_LEVEL_INFO , HighFive::Warn = HIGHFIVE_LOG_LEVEL_WARN , HighFive::Error = HIGHFIVE_LOG_LEVEL_ERROR }
 

Functions

std::string HighFive::to_string (LogSeverity severity)
 
void HighFive::default_logging_callback (LogSeverity severity, const std::string &message, const std::string &file, int line)
 
LoggerHighFive::get_global_logger ()
 Obtain a reference to the logger used by HighFive.
 
void HighFive::register_logging_callback (Logger::callback_type cb)
 Sets the callback that's used by the logger.
 

Macro Definition Documentation

◆ HIGHFIVE_LOG_DEBUG

#define HIGHFIVE_LOG_DEBUG ( message)     ::HighFive::detail::log(::HighFive::LogSeverity::Debug, (message), __FILE__, __LINE__);

◆ HIGHFIVE_LOG_DEBUG_IF

#define HIGHFIVE_LOG_DEBUG_IF ( cond,
message )
Value:
if ((cond)) { \
HIGHFIVE_LOG_DEBUG((message)); \
}

◆ HIGHFIVE_LOG_ERROR

#define HIGHFIVE_LOG_ERROR ( message)     ::HighFive::detail::log(::HighFive::LogSeverity::Error, (message), __FILE__, __LINE__);

◆ HIGHFIVE_LOG_ERROR_IF

#define HIGHFIVE_LOG_ERROR_IF ( cond,
message )
Value:
if ((cond)) { \
HIGHFIVE_LOG_ERROR((message)); \
}

◆ HIGHFIVE_LOG_INFO

#define HIGHFIVE_LOG_INFO ( message)     ::HighFive::detail::log(::HighFive::LogSeverity::Info, (message), __FILE__, __LINE__);

◆ HIGHFIVE_LOG_INFO_IF

#define HIGHFIVE_LOG_INFO_IF ( cond,
message )
Value:
if ((cond)) { \
HIGHFIVE_LOG_INFO((message)); \
}

◆ HIGHFIVE_LOG_LEVEL

#define HIGHFIVE_LOG_LEVEL   HIGHFIVE_LOG_LEVEL_WARN

◆ HIGHFIVE_LOG_LEVEL_DEBUG

#define HIGHFIVE_LOG_LEVEL_DEBUG   10

◆ HIGHFIVE_LOG_LEVEL_ERROR

#define HIGHFIVE_LOG_LEVEL_ERROR   40

◆ HIGHFIVE_LOG_LEVEL_INFO

#define HIGHFIVE_LOG_LEVEL_INFO   20

◆ HIGHFIVE_LOG_LEVEL_WARN

#define HIGHFIVE_LOG_LEVEL_WARN   30

◆ HIGHFIVE_LOG_WARN

#define HIGHFIVE_LOG_WARN ( message)     ::HighFive::detail::log(::HighFive::LogSeverity::Warn, (message), __FILE__, __LINE__);

◆ HIGHFIVE_LOG_WARN_IF

#define HIGHFIVE_LOG_WARN_IF ( cond,
message )
Value:
if ((cond)) { \
HIGHFIVE_LOG_WARN((message)); \
}