https://mooseframework.inl.gov
ReporterMode.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "ReporterMode.h"
11 const ReporterMode REPORTER_MODE_UNSET("UNSET");
12 const ReporterMode REPORTER_MODE_ROOT("ROOT");
13 const ReporterMode REPORTER_MODE_REPLICATED("REPLICATED");
14 const ReporterMode REPORTER_MODE_DISTRIBUTED("DISTRIBUTED");
15 
16 ReporterMode::ReporterMode(const std::string & key) : MooseEnumItem(key, ID_COUNTER++) {}
17 
19 
21 
22 void
24 {
25  addEnumerationItem(mode);
26 }
27 
28 void
30 {
31  _items.clear();
32 }
const ReporterMode REPORTER_MODE_ROOT("ROOT")
static int ID_COUNTER
Definition: ReporterMode.h:51
ReporterMode(const std::string &key)
Definition: ReporterMode.C:16
void clear()
Clear all available items (i.e., create an empty MooseEnum)
Definition: ReporterMode.C:29
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
const ReporterMode REPORTER_MODE_UNSET("UNSET")
const MooseEnumItem & addEnumerationItem(const MooseEnumItem &item)
std::set< MooseEnumItem > _items
Storage for the assigned items.
Class for containing MooseEnum item information.
Definition: MooseEnumItem.h:18
void insert(const ReporterMode &mode, Args... modes)
Definition: ReporterMode.h:79
const ReporterMode REPORTER_MODE_DISTRIBUTED("DISTRIBUTED")
MooseEnumItem that automatically creates the ID and doesn&#39;t allow the ID to be assigned.
Definition: ReporterMode.h:44
const ReporterMode REPORTER_MODE_REPLICATED("REPLICATED")