GDCM: gdcmJSON.h Source File

GDCM 3.2.5

gdcmJSON.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMJSON_H
15#define GDCMJSON_H
16
17/*
18See Sup 166 (QIDO-RS)
19http://www.dclunie.com/dicom-status/status.html#Supplement166
20*/
21
22#include "gdcmFile.h"
23#include "gdcmDataElement.h"
24
25namespace gdcm
26{
27
28class JSONInternal;
29 class GDCM_EXPORT JSON
30{
31public:
32 JSON();
33 ~JSON();
34
35 bool GetPrettyPrint() const;
36 void SetPrettyPrint(bool onoff);
37 void PrettyPrintOn();
38 void PrettyPrintOff();
39
40 bool Code(DataSet const & in, std::ostream & os);
41 bool Decode(std::istream & is, DataSet & out);
42
43private:
44 JSONInternal *Internals;
45};
46
47} // end namespace gdcm
48
49#endif //GDCMXMLPRINTER_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::JSON::PrettyPrintOff
void PrettyPrintOff()
gdcm::JSON::PrettyPrintOn
void PrettyPrintOn()
gdcm::JSON::Code
bool Code(DataSet const &in, std::ostream &os)
gdcm::JSON::JSON
JSON()
gdcm::JSON::GetPrettyPrint
bool GetPrettyPrint() const
gdcm::JSON::~JSON
~JSON()
gdcm::JSON::SetPrettyPrint
void SetPrettyPrint(bool onoff)
gdcm::JSON::Decode
bool Decode(std::istream &is, DataSet &out)
gdcmDataElement.h
gdcmFile.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21