CASM
1.1.0
A Clusters Approach to Statistical Mechanics
json_io.hh
Go to the documentation of this file.
1
#ifndef CASM_database_json_io
2
#define CASM_database_json_io
3
4
#include <string>
5
6
#include "
casm/global/enum.hh
"
7
8
namespace
CASM
{
9
10
class
jsonParser;
11
namespace
DB {
12
template
<
typename
T>
13
class
Database;
14
template
<
typename
T>
15
class
Selection;
16
}
// namespace DB
17
18
namespace
DB {
20
template
<
typename
DataObject>
21
DB::Selection<DataObject>
make_selection
(DB::Database<DataObject> &db,
22
const
jsonParser &kwargs,
23
std::string name_key,
24
std::string sel_key,
25
OnError
on_error =
OnError::THROW
);
26
}
// namespace DB
27
}
// namespace CASM
28
29
#endif
enum.hh
CASM::DB::make_selection
DB::Selection< DataObject > make_selection(DB::Database< DataObject > &db, const jsonParser &kwargs, std::string name_key, std::string sel_key, OnError on_error=OnError::THROW)
Make a DB::Selection from JSON input.
Definition:
json_io_impl.hh:30
CASM
Main CASM namespace.
Definition:
APICommand.hh:8
CASM::OnError
OnError
Definition:
enum.hh:37
CASM::OnError::THROW
@ THROW
include
casm
database
io
json_io.hh
Generated on Tue Mar 23 2021 14:16:34 for CASM by
1.9.1