preCICE v3.2.0
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::io {
10
15public:
17
25
26 void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override;
27
29 void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override {}
30
32 {
33 _contexts.clear();
34 }
35
36private:
37 logging::Logger _log{"io::ExportConfiguration"};
38
39 const std::string TAG = "export";
40
41 const std::string ATTR_LOCATION = "directory";
42 const std::string ATTR_TYPE = "type";
43 const std::string ATTR_AUTO = "auto";
44 const std::string VALUE_VTK = "vtk";
45 const std::string VALUE_VTU = "vtu";
46 const std::string VALUE_VTP = "vtp";
47 const std::string VALUE_CSV = "csv";
48
49 const std::string ATTR_EVERY_N_TIME_WINDOWS = "every-n-time-windows";
50 const std::string ATTR_NEIGHBORS = "neighbors";
51 const std::string ATTR_EVERY_ITERATION = "every-iteration";
52
54};
55
56} // namespace precice::io
void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override
Callback from automatic configuration. Not utilitzed here.
void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag) override
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:17
Represents an XML tag to be configured automatically.
Definition XMLTag.hpp:28
provides Import and Export of the coupling mesh and data.
Tightly coupled to the parameters of Participant()
Definition XMLTag.hpp:21
Callback interface for configuration classes using XMLTag.
Definition XMLTag.hpp:46