20 #ifndef GEOS_DATAREPOSITORY_RESTARTFLAGS_HPP_
21 #define GEOS_DATAREPOSITORY_RESTARTFLAGS_HPP_
27 namespace dataRepository
87 GEOS_ERROR(
"Could not parse " << val <<
" into a PlotLevel." );
116 {
return os << static_cast< int >( plotLevel ); }
#define GEOS_ERROR(msg)
Raise a hard error and terminate the program.
@ NOPLOT
Do not ever write to plot file.
@ LEVEL_3
Write to plot when plotLevel>=3 is specified in input.
@ LEVEL_0
Write to plot always.
@ LEVEL_2
Write to plot when plotLevel>=2 is specified in input.
@ LEVEL_1
Write to plot when plotLevel>=1 is specified in input.
std::istream & operator>>(std::istream &is, PlotLevel &plotLevel)
Reads a PlotLevel enum from a stream.
std::ostream & operator<<(std::ostream &os, PlotLevel const &plotLevel)
Writes a plot level to a stream.
PlotLevel toPlotLevel(int const val)
Function to get a PlotLevel enum from an int.
@ WRITE_AND_READ
Write and read from restart.
@ NO_WRITE
Do not write into restart.
@ WRITE
Write into restart.
std::int32_t integer
Signed integer type.