SND@LHC Software
Loading...
Searching...
No Matches
nlohmann Namespace Reference

Functions

void from_json (const json &_j, struct quicktype::Info &_x)
 
void to_json (json &_j, const struct quicktype::Info &_x)
 
void from_json (const json &_j, struct quicktype::Info_scifi &_x)
 
void to_json (json &_j, const struct quicktype::Info_scifi &_x)
 

Function Documentation

◆ from_json() [1/2]

void nlohmann::from_json ( const json _j,
struct quicktype::Info _x 
)
inline

Definition at line 44 of file boardMappingParser.cxx.

44 {
45 _x.Class = _j.at("class").get<string>();
46 _x.type = _j.at("type").get<string>();
47 _x.board = _j.at("board").get<int>();
48 _x.slots = _j.at("slots").get<vector<string>>();
49 }
vector< string > slots

◆ from_json() [2/2]

void nlohmann::from_json ( const json _j,
struct quicktype::Info_scifi _x 
)
inline

Definition at line 54 of file boardMappingParser.cxx.

54 {
55 _x.Class = _j.at("class").get<string>();
56 _x.type = _j.at("type").get<string>();
57 _x.boards = _j.at("boards").get<vector<int>>();
58 }

◆ to_json() [1/2]

void nlohmann::to_json ( json _j,
const struct quicktype::Info _x 
)
inline

Definition at line 51 of file boardMappingParser.cxx.

51 {
52 _j = json{{"class", _x.Class}, {"type", _x.type}, {"board", _x.board}, {"slots", _x.slots}};
53 }
nlohmann::json json

◆ to_json() [2/2]

void nlohmann::to_json ( json _j,
const struct quicktype::Info_scifi _x 
)
inline

Definition at line 60 of file boardMappingParser.cxx.

60 {
61 _j = json{{"class", _x.Class}, {"type", _x.type}, {"boards", _x.boards}};
62 }