13 XMLTag::Occurrence occ = XMLTag::OCCUR_ARBITRARY;
16 tag.setDocumentation(
"Exports meshes to VTK legacy format files. Parallel participants will use the VTU exporter instead.");
21 tag.setDocumentation(
"Exports meshes to VTU files in serial or PVTU files with VTU piece files in parallel.");
26 tag.setDocumentation(
"Exports meshes to VTP files in serial or PVTP files with VTP piece files in parallel.");
31 tag.setDocumentation(
"Exports vertex coordinates and data to CSV files.");
35 auto attrLocation = XMLAttribute<std::string>(
ATTR_LOCATION,
"")
36 .setDocumentation(
"Directory to export the files to.");
39 .
setDocumentation(
"preCICE does an export every X time windows. Choose -1 for no exports.");
42 .
setDocumentation(
"Exports in every coupling (sub)iteration. For debug purposes.");
44 for (XMLTag &tag : tags) {
45 tag.addAttribute(attrLocation);
46 tag.addAttribute(attrEveryNTimeWindows);
47 tag.addAttribute(attrEveryIteration);
const std::string VALUE_VTK
virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &callingTag)
Callback at begin of XML tag.
std::list< ExportContext > _contexts
const std::string VALUE_VTP
const std::string ATTR_EVERY_N_TIME_WINDOWS
ExportConfiguration(xml::XMLTag &parent)
const std::string ATTR_LOCATION
const std::string ATTR_EVERY_ITERATION
const std::string VALUE_CSV
const std::string VALUE_VTU
XMLAttribute & setDocumentation(std::string documentation)
Sets a documentation string for the attribute.
Represents an XML tag to be configured automatically.
const std::string & getNamespace() const
Returns xml namespace.
std::string getStringAttributeValue(const std::string &name, std::optional< std::string > default_value=std::nullopt) const
bool getBooleanAttributeValue(const std::string &name, std::optional< bool > default_value=std::nullopt) const
const std::string & getName() const
Returns name (without namespace).
int getIntAttributeValue(const std::string &name, std::optional< int > default_value=std::nullopt) const
XMLTag & addSubtag(const XMLTag &tag)
Adds an XML tag as subtag by making a copy of the given tag.
provides Import and Export of the coupling mesh and data.
Tightly coupled to the parameters of Participant()