Schnek
schnek::DiagnosticInterface Class Reference

#include <diagnostic.hpp>

Inheritance diagram for schnek::DiagnosticInterface:
Collaboration diagram for schnek::DiagnosticInterface:

Public Member Functions

 DiagnosticInterface ()
 Default constructor.
 
virtual ~DiagnosticInterface ()
 Virtual destructor.
 
- Public Member Functions inherited from schnek::Block
 Block (pBlock parent_=pBlock())
 
void setContext (pBlockVariables context)
 
pBlockVariables getLocalVariables ()
 
pBlockVariables getVariables ()
 
void setup ()
 
void addChild (pBlock child)
 
void evaluateParameters ()
 
pBlock getParent ()
 
template<typename T >
void addData (std::string key, T &data)
 
template<typename T >
void retrieveData (std::string key, T *&data)
 
template<typename T >
void retrieveData (std::string key, T &data)
 
void initAll ()
 
void setName (const std::string &name_)
 
std::string getName ()
 
- Public Member Functions inherited from schnek::Unique< Block >
long getId ()
 

Protected Member Functions

virtual void open (const std::string &)
 Open the output file.
 
virtual void write ()
 Write into the touput file.
 
virtual void close ()
 Close the output file.
 
virtual bool singleOut ()
 
void initParameters (BlockParameters &)
 
bool appending ()
 
std::string parsedFileName (int rank, int timeCounter)
 
std::string parsedFileName (int rank, double physicalTime)
 
- Protected Member Functions inherited from schnek::Block
virtual void registerData ()
 
virtual void preInit ()
 
virtual void init ()
 
virtual void postInit ()
 
BlockList getChildren ()
 

Protected Attributes

std::string fname
 The file name into which to write.
 
int append
 Append data at every write to the same file?
 

Detailed Description

Interface for diagnostic tasks.

This interface can be used to implement different types of diagnostics. The DiagnosticInterface is closely related to the DiagnosticManager. When an instance of the interface is created it will register itself with the DiagnosticManager. This then takes the responsibility of calling the execute method of the DiagnosticInterface.


The documentation for this class was generated from the following files: