#include <Persist.h>
Definition at line 128 of file Persist.h.
Definition at line 221 of file Persist.cxx.
228 m_load_paths.push_back(boost::filesystem::current_path());
229 for (
auto path : load_paths) {
237 m_jsonnet.addImportPath(boost::filesystem::canonical(*pit).string());
242 for (
auto& vv : extvar) {
243 m_jsonnet.bindExtVar(vv.first, vv.second);
246 for (
auto& vv : extcode) {
247 m_jsonnet.bindExtCodeVar(vv.first, vv.second);
std::vector< boost::filesystem::path > m_load_paths
static std::vector< std::string > get_path()
jsonnet::Jsonnet m_jsonnet
Definition at line 276 of file Persist.cxx.
281 +
". Maybe you need to add to WIRECELL_PATH."});
285 if (ext ==
".jsonnet" or ext.empty()) {
287 const bool ok =
m_jsonnet.evaluateFile(fname, &output);
298 std::fstream
fp(fname.c_str(), std::ios::binary|std::ios::in);
299 boost::iostreams::filtering_stream<boost::iostreams::input> infilt;
300 if (ext ==
".bz2" ) {
301 info(
"loading compressed json file: {}", fname);
302 infilt.push(boost::iostreams::bzip2_decompressor());
std::string resolve(const std::string &filename)
Below is a reimplimenatiaon of the above but in class form..... /.
Thrown when an error involving accessing input or output has occurred.
Json::Value json2object(const std::string &text)
boost::error_info< struct tag_errmsg, std::string > errmsg
static std::string file_extension(const std::string &filename)
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Thrown when a wrong value has been encountered.
jsonnet::Jsonnet m_jsonnet
Definition at line 312 of file Persist.cxx.
315 bool ok =
m_jsonnet.evaluateSnippet(
"<stdin>", text, &output);
Json::Value json2object(const std::string &text)
boost::error_info< struct tag_errmsg, std::string > errmsg
Thrown when a wrong value has been encountered.
jsonnet::Jsonnet m_jsonnet
Below is a reimplimenatiaon of the above but in class form..... /.
Definition at line 258 of file Persist.cxx.
268 boost::filesystem::path full = pobj /
filename;
270 return boost::filesystem::canonical(full).string();
std::vector< boost::filesystem::path > m_load_paths
bool exists(std::string path)
jsonnet::Jsonnet WireCell::Persist::Parser::m_jsonnet |
|
private |
std::vector<boost::filesystem::path> WireCell::Persist::Parser::m_load_paths |
|
private |
The documentation for this class was generated from the following files: