|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
#include <FileWriter.h>


Public Member Functions | |
| void | write (const std::string &dest, std::shared_ptr< BlockAccessor > src=nullptr) override |
| Export all blocks from an accessor or from the current database. | |
| void | write_blocks (const std::string &dest, const std::vector< BlockName > &block_names, std::shared_ptr< BlockAccessor > src=nullptr) |
| Export only the requested blocks. | |
| void | write_parameters (const std::string &dest, const std::vector< ParamId > ¶meter_ids, std::shared_ptr< BlockAccessor > src=nullptr) |
| Export only the requested block/id parameters. | |
Public Member Functions inherited from IDataWriter< const std::string &, std::shared_ptr< BlockAccessor > > | |
| virtual | ~IDataWriter ()=default |
| Virtual destructor. | |
Definition at line 26 of file FileWriter.h.
|
overridevirtual |
Export all blocks from an accessor or from the current database.
| dest | Destination filename. Its suffix selects the output format. |
| src | Optional source accessor. When null, the current database is used. |
| std::logic_error | If the current database is requested before initialization. |
| std::invalid_argument | If the destination suffix is unsupported. |
| std::runtime_error | If the destination cannot be written. |
Implements IDataWriter< const std::string &, std::shared_ptr< BlockAccessor > >.
Definition at line 115 of file FileWriter.cpp.
| void FileWriter::write_blocks | ( | const std::string & | dest, |
| const std::vector< BlockName > & | block_names, | ||
| std::shared_ptr< BlockAccessor > | src = nullptr |
||
| ) |
Export only the requested blocks.
| dest | Destination filename. |
| block_names | Block names or aliases to export. |
| src | Optional source accessor. When null, the current database is used. |
| std::invalid_argument | If a requested block does not exist. |
Definition at line 119 of file FileWriter.cpp.
| void FileWriter::write_parameters | ( | const std::string & | dest, |
| const std::vector< ParamId > & | parameter_ids, | ||
| std::shared_ptr< BlockAccessor > | src = nullptr |
||
| ) |
Export only the requested block/id parameters.
ParameterType, when present in a ParamId, is used to resolve the source Parameters repository. Untyped identifiers are resolved from the supplied accessor or from the merged current database.
| dest | Destination filename. |
| parameter_ids | Parameter identifiers to export. |
| src | Optional source accessor used for untyped identifiers. |
| std::invalid_argument | If a requested parameter does not exist. |
Definition at line 143 of file FileWriter.cpp.