comparison 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
comparison
equal deleted inserted replaced
1064:cd20e2568fc2 1065:921532f67770
41 * value. In Microsoft-speak they are called GUIDs, but call them 41 * value. In Microsoft-speak they are called GUIDs, but call them
42 * UUIDs when not using Microsoft-speak. 42 * UUIDs when not using Microsoft-speak.
43 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid 43 * http://stackoverflow.com/questions/246930/is-there-any-difference-between-a-guid-and-a-uuid
44 **/ 44 **/
45 45
46 #include "Toolbox.h"
47
46 namespace Orthanc 48 namespace Orthanc
47 { 49 {
48 namespace Toolbox 50 namespace Toolbox
49 { 51 {
50 std::string GenerateUuid(); 52 std::string GenerateUuid();
67 69
68 const std::string& GetPath() const 70 const std::string& GetPath() const
69 { 71 {
70 return path_; 72 return path_;
71 } 73 }
74
75 void Write(const std::string& content)
76 {
77 Toolbox::WriteFile(content, path_);
78 }
79
80 void Read(std::string& content) const
81 {
82 Toolbox::ReadFile(content, path_);
83 }
72 }; 84 };
73 } 85 }
74 } 86 }