preCICE
v3.1.2
Loading...
Searching...
No Matches
src
io
config
ExportConfiguration.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
list
>
4
#include <
string
>
5
#include "
io/ExportContext.hpp
"
6
#include "
logging/Logger.hpp
"
7
#include "
xml/XMLTag.hpp
"
8
9
namespace
precice
{
10
namespace
io {
11
15
class
ExportConfiguration
:
public
xml::XMLTag::Listener
{
16
public
:
17
ExportConfiguration
(
xml::XMLTag
&parent);
18
22
std::list<ExportContext>
&
exportContexts
()
23
{
24
return
_contexts
;
25
}
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
32
void
resetExports
()
33
{
34
_contexts
.clear();
35
}
36
37
private
:
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
54
std::list<ExportContext>
_contexts
;
55
};
56
57
}
// namespace io
58
}
// namespace precice
ExportContext.hpp
Logger.hpp
XMLTag.hpp
std::string
precice::io::ExportConfiguration
Configuration class for exports.
Definition
ExportConfiguration.hpp:15
precice::io::ExportConfiguration::xmlEndTagCallback
virtual void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag)
Callback from automatic configuration. Not utilitzed here.
Definition
ExportConfiguration.hpp:30
precice::io::ExportConfiguration::VALUE_VTK
const std::string VALUE_VTK
Definition
ExportConfiguration.hpp:45
precice::io::ExportConfiguration::TAG
const std::string TAG
Definition
ExportConfiguration.hpp:40
precice::io::ExportConfiguration::xmlTagCallback
virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag)
Callback at begin of XML tag.
Definition
ExportConfiguration.cpp:52
precice::io::ExportConfiguration::resetExports
void resetExports()
Definition
ExportConfiguration.hpp:32
precice::io::ExportConfiguration::ATTR_AUTO
const std::string ATTR_AUTO
Definition
ExportConfiguration.hpp:44
precice::io::ExportConfiguration::_contexts
std::list< ExportContext > _contexts
Definition
ExportConfiguration.hpp:54
precice::io::ExportConfiguration::_log
logging::Logger _log
Definition
ExportConfiguration.hpp:38
precice::io::ExportConfiguration::VALUE_VTP
const std::string VALUE_VTP
Definition
ExportConfiguration.hpp:47
precice::io::ExportConfiguration::ATTR_EVERY_N_TIME_WINDOWS
const std::string ATTR_EVERY_N_TIME_WINDOWS
Definition
ExportConfiguration.hpp:50
precice::io::ExportConfiguration::ExportConfiguration
ExportConfiguration(xml::XMLTag &parent)
Definition
ExportConfiguration.cpp:8
precice::io::ExportConfiguration::ATTR_LOCATION
const std::string ATTR_LOCATION
Definition
ExportConfiguration.hpp:42
precice::io::ExportConfiguration::ATTR_EVERY_ITERATION
const std::string ATTR_EVERY_ITERATION
Definition
ExportConfiguration.hpp:52
precice::io::ExportConfiguration::exportContexts
std::list< ExportContext > & exportContexts()
Returns the configured export context.
Definition
ExportConfiguration.hpp:22
precice::io::ExportConfiguration::VALUE_CSV
const std::string VALUE_CSV
Definition
ExportConfiguration.hpp:48
precice::io::ExportConfiguration::ATTR_NEIGHBORS
const std::string ATTR_NEIGHBORS
Definition
ExportConfiguration.hpp:51
precice::io::ExportConfiguration::ATTR_TYPE
const std::string ATTR_TYPE
Definition
ExportConfiguration.hpp:43
precice::io::ExportConfiguration::VALUE_VTU
const std::string VALUE_VTU
Definition
ExportConfiguration.hpp:46
precice::logging::Logger
This class provides a lightweight logger.
Definition
Logger.hpp:16
precice::xml::XMLTag
Represents an XML tag to be configured automatically.
Definition
XMLTag.hpp:31
list
precice
Main namespace of the precice library.
Definition
Acceleration.cpp:5
string
precice::xml::ConfigurationContext
Tightly coupled to the parameters of Participant()
Definition
XMLTag.hpp:24
precice::xml::XMLTag::Listener
Callback interface for configuration classes using XMLTag.
Definition
XMLTag.hpp:43