changeset 2280:2e7a8ce24be2

new constructor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 May 2017 20:39:53 +0200
parents 16e45af17a4d
children e002430baa41
files Plugins/Samples/Common/FullOrthancDataset.cpp Plugins/Samples/Common/FullOrthancDataset.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/Common/FullOrthancDataset.cpp	Fri May 19 10:33:17 2017 +0200
+++ b/Plugins/Samples/Common/FullOrthancDataset.cpp	Mon May 22 20:39:53 2017 +0200
@@ -174,6 +174,13 @@
   }
 
 
+  FullOrthancDataset::FullOrthancDataset(const Json::Value& root) :
+    root_(root)
+  {
+    CheckRoot();
+  }
+
+
   bool FullOrthancDataset::GetStringValue(std::string& result,
                                           const DicomPath& path) const
   {
--- a/Plugins/Samples/Common/FullOrthancDataset.h	Fri May 19 10:33:17 2017 +0200
+++ b/Plugins/Samples/Common/FullOrthancDataset.h	Mon May 22 20:39:53 2017 +0200
@@ -58,6 +58,8 @@
     FullOrthancDataset(const void* content,
                        size_t size);
 
+    FullOrthancDataset(const Json::Value& root);
+
     virtual bool GetStringValue(std::string& result,
                                 const DicomPath& path) const;