Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
print.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <iostream>
5#include <string>
6
8
14#define STORM_PRINT(message) \
15 do { \
16 std::cout << message; \
17 std::cout.flush(); \
18 } while (false)
19
20#define STORM_PRINT_AND_LOG(message) \
21 do { \
22 STORM_LOG_INFO(message); \
23 STORM_PRINT(message); \
24 } while (false)
25
26namespace storm {
27namespace cli {
28
34std::string shellQuoteSingleIfNecessary(const std::string& arg);
35
36void printHeader(std::string const& name, const int argc, const char** argv);
37
38void printVersion();
39
40void printTimeAndMemoryStatistics(uint64_t wallclockMilliseconds = 0);
41
42} // namespace cli
43} // namespace storm
void printTimeAndMemoryStatistics(uint64_t wallclockMilliseconds)
Definition print.cpp:154
std::string shellQuoteSingleIfNecessary(const std::string &arg)
For a command-line argument, returns a quoted version with single quotes if it contains unsafe charac...
Definition print.cpp:36
void printHeader(std::string const &name, const int argc, const char **argv)
Definition print.cpp:57
void printVersion()
Definition print.cpp:79