Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
xml_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 _61eb6ed2_447a_43b5_a6ba_ca7c2a5fb492
10
#define _61eb6ed2_447a_43b5_a6ba_ca7c2a5fb492
11
12
#include <functional>
13
#include <utility>
14
15
#include <boost/property_tree/ptree.hpp>
16
17
#include "
odil/DataSet.h
"
18
19
#include "
odil/odil.h
"
20
21
namespace
odil
22
{
23
24
typedef
25
std::function<
26
std::pair<std::string, std::string>(
27
std::shared_ptr<DataSet const>,
Tag
const
&)
28
>
29
BulkDataCreator
;
30
32
ODIL_API
boost::property_tree::ptree
as_xml
(
33
std::shared_ptr<DataSet const> data_set,
34
BulkDataCreator
const
& bulk_data_creator={});
35
37
ODIL_API
std::shared_ptr<DataSet>
as_dataset
(boost::property_tree::ptree
const
& xml);
38
39
}
// namespace odil
40
41
#endif
// _61eb6ed2_447a_43b5_a6ba_ca7c2a5fb492
DataSet.h
odil::Tag
A DICOM element tag.
Definition
Tag.h:26
odil
Definition
Association.h:25
odil::as_xml
boost::property_tree::ptree as_xml(std::shared_ptr< DataSet const > data_set, BulkDataCreator const &bulk_data_creator={})
Convert a data set to its XML representation.
odil::as_dataset
std::shared_ptr< DataSet > as_dataset(Json::Value const &json)
Create a data set from its JSON representation.
odil::BulkDataCreator
std::function< std::pair< std::string, std::string >(std::shared_ptr< DataSet const >, Tag const &) > BulkDataCreator
Definition
xml_converter.h:29
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
xml_converter.h
Generated by
1.17.0