8#ifndef CONFIGOUTPUT_HPP
9#define CONFIGOUTPUT_HPP
37 void setFilenamePrefix(
const std::string& filePrefix)
override { m_filePrefix = filePrefix; }
42 inline std::string
getName()
const override {
return "ConfigOutput"; };
43 inline void setData(
const ModelState::DataMap&)
override {};
52 std::string m_filePrefix;
54 bool firstOutput =
true;
56 bool outputAllTheFields =
false;
58 std::set<std::string> fieldsForOutput;
59 std::string currentFileName;
60 std::set<ModelComponent::SharedArray> sharedArraysForOutput;
61 std::set<ModelComponent::ProtectedArray> protectedArraysForOutput;
63 static const std::string all;
64 static const std::string defaultLastOutput;
ModelState getStateRecursive(const OutputSpec &os) const override
Returns the state of the ModelComponent and any ModelComponents it depends on.
ModelState getState() const override
Returns a ModelState from this component.
void outputState(const ModelMetadata &meta) override
Outputs the passed ModelState.
void setFilenamePrefix(const std::string &filePrefix) override
Sets the output file name.
ModelState getState(const OutputLevel &) const override
Returns a ModelState from this component at a specified level.
std::string getName() const override
Returns the name of the component.
void setData(const ModelState::DataMap &) override
Set the initial data of the component from the passed ModelState.
void configure() override
The configuration function.