PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
loggerDeck.h
Go to the documentation of this file.
1/*
2* -------------------------------------------
3 * Copyright (c) 2021 - 2026 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#ifndef UTILS_IO_LOGGERDECK_H
12#define UTILS_IO_LOGGERDECK_H
13
14
15#include <fstream>
16
17namespace util {
18 namespace io {
22 struct LoggerDeck {
25
27 std::string d_filename;
28
31
34
39 }
40
47 LoggerDeck(int debug_level, std::string filename)
48 : d_debugLevel(debug_level), d_filename(filename), d_printScreen
49 (d_debugLevel > 0), d_printFile(!d_filename.empty()) {
50 }
51 };
52 } // namespace io
53} // namespace util
54
55#endif // UTILS_IO_LOGGERDECK_H
56
Collection of methods useful in simulation.
Definition constants.h:14
Deck to store log parameters.
Definition loggerDeck.h:22
bool d_printFile
Print to file?
Definition loggerDeck.h:33
LoggerDeck(int debug_level, std::string filename)
Constructor.
Definition loggerDeck.h:47
std::string d_filename
Filename to print log.
Definition loggerDeck.h:27
int d_debugLevel
Debug level.
Definition loggerDeck.h:24
LoggerDeck()
Constructor.
Definition loggerDeck.h:38
bool d_printScreen
Print to std::cout?
Definition loggerDeck.h:30