16 : _object_name(object_name), _value_name(value_name)
22 std::size_t
idx = combined_name.rfind(
"/");
23 if (
idx != std::string::npos)
29 mooseError(
"Invalid combined Reporter name: ", combined_name);
58 ReporterName::operator std::string()
const {
return getCombinedName(); }
86 return "Postprocessor";
88 return "VectorPostprocessor";
106 const VectorPostprocessorName & name,
const std::string & vector_name)
std::string name(const ElemQuality q)
bool isVectorPostprocessor() const
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
PostprocessorReporterName(const PostprocessorName &name)
VectorPostprocessorReporterName(const VectorPostprocessorName &name, const std::string &vector_name)
static const std::string REPORTER_RESTARTABLE_DATA_PREFIX
The prefix for reporter data in the restartable system.
std::ostream & operator<<(std::ostream &os, const ReporterName &state)
std::basic_ostream< charT, traits > * os
const std::string getCombinedName() const
Return the name of the object and data as object_name/data_name.
bool operator<(const ReporterName &rhs) const
Less than operator.
std::string specialTypeToName() const
Converts the special type to a usable name for error reporting.
bool operator==(const ReporterName &rhs) const
Compare with another object or string.
std::string _value_name
The value name.
std::string _object_name
The object name.
bool isPostprocessor() const
const std::string & getObjectName() const
Return the object name that produces the Reporter value.
void setIsPostprocessor()
Sets the special type to a Postprocessor.
void setIsVectorPostprocessor()
Sets the special type to a VectorPostprocessor.
std::string getRestartableName() const
Return the name used for registration of this Reporter in the restartable data system.
const std::string & getValueName() const
Return the data name for the Reporter value.
The Reporter system is comprised of objects that can contain any number of data values.