MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / path_translator

Class path_translator

src/Config.cpp:157–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155// The default stream-translator adds redundant quotes
156template <typename Source>
157struct path_translator {
158 typedef Source internal_type;
159 typedef boost::filesystem::path external_type;
160 inline boost::optional<external_type> get_value(const internal_type &v) const { return external_type(v); }
161 inline boost::optional<internal_type> put_value(const external_type &v) const { return v.string<Source>(); }
162};
163constexpr path_translator<config_tree::data_type> config_tree_path_translator;
164
165void load_config() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected