YamlWriter.h Source File#
YamlWriter.h
Go to the documentation of this file.
Header for unit conversion utilities, which are used to translate user input from input files (See In...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
A class for generating full YAML input files from multiple data sources.
Definition YamlWriter.h:28
string toYamlString() const
Return a YAML string that contains the definitions for the added phases, species, and reactions.
Definition YamlWriter.cpp:55
void setPrecision(long int n)
For output floating point values, set the maximum number of digits to the right of the decimal point.
Definition YamlWriter.h:53
void setUnitSystem(const UnitSystem &units=UnitSystem())
Set the units to be used in the output file.
Definition YamlWriter.cpp:201
void skipUserDefined(bool skip=true)
By default user-defined data present in the input is preserved on output.
Definition YamlWriter.h:60
void setHeader(const AnyMap &header)
Include top-level information used in YAML header block.
Definition YamlWriter.cpp:19
void addPhase(shared_ptr< Solution > soln, bool includeAdjacent=true)
Include a phase definition for the specified Solution object.
Definition YamlWriter.cpp:23
void toYamlFile(const string &filename) const
Write the definitions for the added phases, species and reactions to the specified file.
Definition YamlWriter.cpp:189
void setUnits(const map< string, string > &units={})
Set the units to be used in the output file.
Definition YamlWriter.cpp:195
This file contains definitions of constants, types and terms that are used in internal routines and a...
Generated by 1.9.7