Celeritas 0.7.0-dev.220+develop.5ce7701da
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
IO.json.cc File Reference
#include "IO.json.hh"
#include "corecel/Assert.hh"
#include "corecel/io/EnumStringMapper.hh"
#include "corecel/io/JsonUtils.json.hh"
#include "corecel/io/StringEnumMapper.hh"
#include "orange/OrangeTypesIO.json.hh"

Namespaces

namespace  celeritas::inp
 Configure Celeritas input.
 

Macros

#define OPT_JSON_STRING(NAME)   CELER_JSON_PAIR_WHEN(v, NAME, !v.NAME.empty())
 
#define OPT_LOAD_OPTION(NAME)   CELER_JSON_LOAD_OPTION(j, v, NAME)
 

Functions

char constceleritas::inp::to_cstring (InlineSingletons value)
 Get a string corresponding to an inline singletons option.
 
std::istream & celeritas::inp::operator>> (std::istream &is, OrangeGeoFromGeant &inp)
 Helper to read the import options from a file or stream.
 
std::ostream & celeritas::inp::operator<< (std::ostream &os, OrangeGeoFromGeant const &inp)
 Helper to write the options to a file or stream.
 
void celeritas::inp::to_json (nlohmann::json &j, InlineSingletons const &v)
 
void celeritas::inp::from_json (nlohmann::json const &j, InlineSingletons &v)
 
void celeritas::inp::to_json (nlohmann::json &j, OrangeGeoFromGeant const &v)
 
void celeritas::inp::from_json (nlohmann::json const &j, OrangeGeoFromGeant &v)