GDCM  2.4.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 /*
18 See Sup 166 (QIDO-RS)
19 http://www.dclunie.com/dicom-status/status.html#Supplement166
20 */
21 
22 #include "gdcmFile.h"
23 #include "gdcmDataElement.h"
24 
25 namespace gdcm
26 {
27 
28 class JSONInternal;
30 {
31 public:
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 
43 private:
44  JSONInternal *Internals;
45 };
46 
47 } // end namespace gdcm
48 
49 #endif //GDCMXMLPRINTER_H
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
Definition: gdcmJSON.h:29
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo