SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Class for loading JSON content from files. More...
#include <JSONLoader.h>
Public Member Functions | |
JSONLoader () | |
Constructor. More... | |
Json::Value | LoadFile (const std::string &filename, const mxx::comm &world) |
Load file and return JSON tree. More... | |
Private Attributes | |
std::vector< std::unique_ptr< JSONLoaderPlugin > > | plugins_ |
List of plugins. | |
Class for loading JSON content from files.
Definition at line 41 of file JSONLoader.h.
|
inline |
Constructor.
The constructer automatically inserts the IncludePlugin into the list of plugins.
Definition at line 53 of file JSONLoader.h.
References plugins_.
|
inline |
Load file and return JSON tree.
filename | Name of the JSON file to load. |
world | MPI global communicator. |
This function loads JSON content from a given file. For each plugin in plugins_
the filter defined with this plugin will be applied to the contents loaded from the file.
Definition at line 68 of file JSONLoader.h.
References SSAGES::GetFileContents(), SSAGES::GetFilePath(), and plugins_.