diff Core/Uuid.h @ 1065:921532f67770

Lua scripts can invoke system commands, with CallSystem()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jul 2014 16:59:33 +0200
parents 2d0a347e8cfc
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Core/Uuid.h	Fri Jul 25 16:13:36 2014 +0200
+++ b/Core/Uuid.h	Fri Jul 25 16:59:33 2014 +0200
@@ -43,6 +43,8 @@
  * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid
  **/
 
+#include "Toolbox.h"
+
 namespace Orthanc
 {
   namespace Toolbox
@@ -69,6 +71,16 @@
       {
         return path_;
       }
+
+      void Write(const std::string& content)
+      {
+        Toolbox::WriteFile(content, path_);
+      }
+
+      void Read(std::string& content) const
+      {
+        Toolbox::ReadFile(content, path_);
+      }
     };
   }
 }