preCICE v3.1.1
Loading...
Searching...
No Matches
ExportConfiguration.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4#include <string>
6#include "logging/Logger.hpp"
7#include "xml/XMLTag.hpp"
8
9namespace precice {
10namespace io {
11
16public:
18
26
27 virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag);
28
30 virtual void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) {}
31
33 {
34 _contexts.clear();
35 }
36
37private:
38 logging::Logger _log{"io::ExportConfiguration"};
39
40 const std::string TAG = "export";
41
42 const std::string ATTR_LOCATION = "directory";
43 const std::string ATTR_TYPE = "type";
44 const std::string ATTR_AUTO = "auto";
45 const std::string VALUE_VTK = "vtk";
46 const std::string VALUE_VTU = "vtu";
47 const std::string VALUE_VTP = "vtp";
48 const std::string VALUE_CSV = "csv";
49
50 const std::string ATTR_EVERY_N_TIME_WINDOWS = "every-n-time-windows";
51 const std::string ATTR_NEIGHBORS = "neighbors";
52 const std::string ATTR_EVERY_ITERATION = "every-iteration";
53
55};
56
57} // namespace io
58} // namespace precice
Configuration class for exports.
virtual void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag)
Callback from automatic configuration. Not utilitzed here.
virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag)
Callback at begin of XML tag.
std::list< ExportContext > _contexts
std::list< ExportContext > & exportContexts()
Returns the configured export context.
This class provides a lightweight logger.
Definition Logger.hpp:16
Represents an XML tag to be configured automatically.
Definition XMLTag.hpp:31
Main namespace of the precice library.
Tightly coupled to the parameters of Participant()
Definition XMLTag.hpp:24
Callback interface for configuration classes using XMLTag.
Definition XMLTag.hpp:43