Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
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
18namespace odil
19{
20
22ODIL_API Json::Value as_json(
23 std::shared_ptr<DataSet const> data_set,
24 Value::Strings const & specific_character_set={});
25
27ODIL_API std::shared_ptr<DataSet> as_dataset(Json::Value const & json);
28
29}
30
31#endif // _6f5dc463_a89a_4f77_a0ed_36dca74b9e59
std::vector< String > Strings
String container.
Definition Value.h:57
Definition Association.h:25
std::shared_ptr< DataSet > as_dataset(Json::Value const &json)
Create a data set from its JSON representation.
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.
#define ODIL_API
Definition odil.h:28