Odil
A C++11 library for the DICOM standard
json_converter.h
Go to the documentation of this file.
1 /*************************************************************************
2  * odil - Copyright (C) Universite de Strasbourg
3  * Distributed under the terms of the CeCILL-B license, as published by
4  * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5  * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6  * for details.
7  ************************************************************************/
8 
9 #ifndef _6f5dc463_a89a_4f77_a0ed_36dca74b9e59
10 #define _6f5dc463_a89a_4f77_a0ed_36dca74b9e59
11 
12 #include <json/json.h>
13 
14 #include "odil/DataSet.h"
15 #include "odil/odil.h"
16 #include "odil/Value.h"
17 
18 namespace odil
19 {
20 
22 ODIL_API Json::Value as_json(
23  std::shared_ptr<DataSet const> data_set,
24  Value::Strings const & specific_character_set={});
25 
27 ODIL_API std::shared_ptr<DataSet> as_dataset(Json::Value const & json);
28 
29 }
30 
31 #endif // _6f5dc463_a89a_4f77_a0ed_36dca74b9e59
odil::Value::Strings
std::vector< String > Strings
String container.
Definition: Value.h:63
odil
Definition: Association.h:24
ODIL_API
#define ODIL_API
Definition: odil.h:28
odil.h
odil::as_dataset
std::shared_ptr< DataSet > as_dataset(Json::Value const &json)
Create a data set from its JSON representation.
odil::as_json
Json::Value as_json(std::shared_ptr< DataSet const > data_set, Value::Strings const &specific_character_set={})
Convert a data set to its JSON representation.
DataSet.h
Value.h