Classes | Namespaces | Typedefs | Functions
Persist.h File Reference
#include <json/json.h>
#include "libjsonnet++.h"
#include <boost/filesystem.hpp>
#include <vector>
#include <string>

Go to the source code of this file.

Classes

class  WireCell::Persist::Parser
 

Namespaces

 WireCell
 
 WireCell::Persist
 

Typedefs

typedef std::map< std::string, std::stringWireCell::Persist::externalvars_t
 

Functions

bool WireCell::Persist::exists (const std::string &filename)
 Return true file exists (no file resolution performed). More...
 
std::string WireCell::Persist::resolve (const std::string &filename)
 
std::string WireCell::Persist::slurp (const std::string &filename)
 
void WireCell::Persist::dump (const std::string &filename, const Json::Value &top, bool pretty=false)
 
std::string WireCell::Persist::dumps (const Json::Value &top, bool pretty=false)
 As above but dump to a JSON text string. More...
 
Json::Value WireCell::Persist::load (const std::string &filename, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
 
Json::Value WireCell::Persist::loads (const std::string &text, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
 
std::string WireCell::Persist::evaluate_jsonnet_file (const std::string &filename, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
 
std::string WireCell::Persist::evaluate_jsonnet_text (const std::string &text, const externalvars_t &extvar=externalvars_t(), const externalvars_t &extcode=externalvars_t())
 
Json::Value WireCell::Persist::json2object (const std::string &text)
 
template<typename Iterable >
Json::Value WireCell::Persist::iterable2json (Iterable const &cont)