24class SolutionInvalidityRegistry;
66std::ostream &
operator<<(std::ostream & os,
const SolutionInvalidityName & name);
92 SolutionInvalidityInfo,
93 SoltionInvalidityNameHash>
105 const std::string & message,
unsigned int InvalidSolutionID
void dataStore(std::ostream &, SolutionInvalidity &, void *)
The SolutionInvalidity will contain all the information about the occurrence(s) of solution invalidit...
Helper class that stores the info associated with an invalid solution.
InvalidSolutionID id
The solution ID.
bool warning
Whether or not this is a warning.
SolutionInvalidityInfo(const std::string &object_type, const std::string &message, const InvalidSolutionID id, const bool warning)
Helper class that stores the name associated with an invalid solution.
SolutionInvalidityName(const std::string &object_type, const std::string &message)
std::string message
The invalid message.
std::string object_type
The type of the object.
bool operator==(const SolutionInvalidityName &other) const
The place where all sections with solution invalid warnings will be stored.
SolutionInvalidityRegistry()
friend SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
So it can be constructed.
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.
friend SolutionInvalidity
This is only here so that SolutionInvalidity can access readSectionInfo.
void hash_combine(std::size_t &)
Used for hash function specialization for Attribute objects.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.
std::ostream & operator<<(std::ostream &os, const SolutionInvalidityName &name)
Helper class that hash the name associated with an invalid solution.
size_t operator()(const SolutionInvalidityName &name) const