FIMS  v0.8.0
Loading...
Searching...
No Matches
def.hpp File Reference

Creates pre-processing macros such as what type of machine you are on and creates the log information. More...

#include <fstream>
#include <map>
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include <cstdlib>
#include <chrono>
#include <sstream>
#include <iostream>
#include <filesystem>
#include <stdlib.h>
#include <signal.h>
#include <csignal>
#include <cstring>
#include <stdexcept>

Go to the source code of this file.

Classes

struct  fims::LogEntry
 
class  fims::FIMSLog
 

Macros

#define FIMS_DEBUG_LOG(MESSAGE)   /**< Print MESSAGE to debug log */
 
#define FIMS_INFO_LOG(MESSAGE)
 
#define FIMS_WARNING_LOG(MESSAGE)
 
#define FIMS_ERROR_LOG(MESSAGE)
 
#define FIMS_STR(s)   #s
 

Functions

void fims::WriteAtExit (int sig)
 
template<typename T >
std::string fims::to_string (T v)
 

Detailed Description

Creates pre-processing macros such as what type of machine you are on and creates the log information.

Macro Definition Documentation

◆ FIMS_DEBUG_LOG

#define FIMS_DEBUG_LOG (   MESSAGE)    /**< Print MESSAGE to debug log */

Print MESSAGE to debug log

◆ FIMS_ERROR_LOG

#define FIMS_ERROR_LOG (   MESSAGE)
Value:
fims::FIMSLog::fims_log->error_message( \
static std::shared_ptr< FIMSLog > fims_log
A singleton instance of the log, i.e., where there is only one log. The object is created when the ....
Definition def.hpp:224
void clear_internal()
Clears the internal objects.
Definition rcpp_interface.hpp:279

Print MESSAGE to error log

◆ FIMS_INFO_LOG

#define FIMS_INFO_LOG (   MESSAGE)
Value:

Print MESSAGE to info log

◆ FIMS_STR

#define FIMS_STR (   s)    #s

String of s

◆ FIMS_WARNING_LOG

#define FIMS_WARNING_LOG (   MESSAGE)
Value:

Print MESSAGE to warning log

Function Documentation

◆ to_string()

template<typename T >
std::string fims::to_string ( T  v)

Converts an object T to a string.

Parameters
v
Returns

◆ WriteAtExit()

void fims::WriteAtExit ( int  sig)

Signal intercept function. Writes the log to the disk before a crash occurs.

Parameters
sig