|
Nektar++
|
#include <MetricNoWarning.h>
Public Member Functions | |
| virtual | ~MetricNoWarning () |
Public Member Functions inherited from Nektar::Metric | |
| Metric (TiXmlElement *metric, bool generate) | |
| Constructor. More... | |
| virtual | ~Metric ()=default |
| bool | Test (std::istream &pStdout, std::istream &pStderr) |
Calls a metric's v_Test function (or v_Generate if m_generate). More... | |
| void | Generate (std::istream &pStdout, std::istream &pStderr) |
| std::string | GetType () |
| Return metric type. More... | |
| int | GetID () |
| Return metric ID. More... | |
| bool | SupportsAverage () const |
| Return whether this metric supports averaging results from multiple runs. More... | |
Static Public Member Functions | |
| static MetricSharedPtr | create (TiXmlElement *metric, bool generate) |
Static Public Attributes | |
| static std::string | type |
Protected Member Functions | |
| MetricNoWarning (TiXmlElement *metric, bool generate) | |
| Constructor. More... | |
| virtual bool | v_Test (std::istream &pStdout, std::istream &pStderr) |
| Test if the output contains the warning message. If so, the test fails, otherwise, it passes. More... | |
| virtual void | v_Generate (std::istream &pStdout, std::istream &pStderr) |
| Test if the output contains the warning message. If so, generate the .tst file. More... | |
| virtual bool | v_Test (std::istream &pStdout, std::istream &pStderr)=0 |
| Virtual function to test the metric. Should be redefined in derived classes. More... | |
| virtual void | v_Generate (std::istream &pStdout, std::istream &pSrderr)=0 |
| Virtual function to generate the metric. Should be redefined in derived classes. More... | |
Protected Attributes | |
| boost::regex | m_regexWarning {".*WARNING.*"} |
| std::vector< std::vector< std::string > > | m_matches |
Protected Attributes inherited from Nektar::Metric | |
| int | m_id |
| Stores the ID of this metric. More... | |
| std::string | m_type |
| Stores the type of this metric (uppercase). More... | |
| bool | m_generate |
| Determines whether to generate this metric or not. More... | |
| bool | m_average = false |
| Indicates whether a metric supports averaging results from multiple runs. More... | |
| TiXmlElement * | m_metric |
| Pointer to XML structure containing metric definition. More... | |
Definition at line 44 of file MetricNoWarning.h.
|
inlinevirtual |
Definition at line 47 of file MetricNoWarning.h.
|
protected |
Constructor.
Definition at line 84 of file MetricNoWarning.cpp.
References ASSERTL0, Nektar::Metric::m_generate, m_matches, and m_regexWarning.
Referenced by create().
|
inlinestatic |
Definition at line 49 of file MetricNoWarning.h.
References MetricNoWarning().
|
protectedvirtual |
Test if the output contains the warning message. If so, generate the .tst file.
Implements Nektar::Metric.
Definition at line 217 of file MetricNoWarning.cpp.
References ASSERTL0, m_matches, Nektar::Metric::m_metric, and m_regexWarning.
|
protectedvirtual |
Test if the output contains the warning message. If so, the test fails, otherwise, it passes.
Implements Nektar::Metric.
Definition at line 155 of file MetricNoWarning.cpp.
References m_matches, and m_regexWarning.
|
protected |
Definition at line 61 of file MetricNoWarning.h.
Referenced by MetricNoWarning(), v_Generate(), and v_Test().
|
protected |
Definition at line 58 of file MetricNoWarning.h.
Referenced by MetricNoWarning(), v_Generate(), and v_Test().
|
static |
Definition at line 54 of file MetricNoWarning.h.