comparison OrthancServer/DatabaseWrapper.h @ 188:090cefdab1d1

fix because of Windows macros
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Nov 2012 17:43:12 +0100
parents 8e673a65564d
children ccbc2cf64a0d
comparison
equal deleted inserted replaced
187:8e673a65564d 188:090cefdab1d1
63 63
64 public: 64 public:
65 void SetGlobalProperty(const std::string& name, 65 void SetGlobalProperty(const std::string& name,
66 const std::string& value); 66 const std::string& value);
67 67
68 bool FindGlobalProperty(std::string& target, 68 bool LookupGlobalProperty(std::string& target,
69 const std::string& name); 69 const std::string& name);
70 70
71 std::string GetGlobalProperty(const std::string& name, 71 std::string GetGlobalProperty(const std::string& name,
72 const std::string& defaultValue = ""); 72 const std::string& defaultValue = "");
73 73
74 int64_t CreateResource(const std::string& publicId, 74 int64_t CreateResource(const std::string& publicId,
75 ResourceType type); 75 ResourceType type);
76 76
77 bool FindResource(const std::string& publicId, 77 bool LookupResource(const std::string& publicId,
78 int64_t& id, 78 int64_t& id,
79 ResourceType& type); 79 ResourceType& type);
80 80
81 void AttachChild(int64_t parent, 81 void AttachChild(int64_t parent,
82 int64_t child); 82 int64_t child);
83 83
84 void DeleteResource(int64_t id); 84 void DeleteResource(int64_t id);
85 85
86 void SetMetadata(int64_t id, 86 void SetMetadata(int64_t id,
87 MetadataType type, 87 MetadataType type,
88 const std::string& value); 88 const std::string& value);
89 89
90 bool FindMetadata(std::string& target, 90 bool LookupMetadata(std::string& target,
91 int64_t id, 91 int64_t id,
92 MetadataType type); 92 MetadataType type);
93 93
94 std::string GetMetadata(int64_t id, 94 std::string GetMetadata(int64_t id,
95 MetadataType type, 95 MetadataType type,
96 const std::string& defaultValue = ""); 96 const std::string& defaultValue = "");
97 97
108 uint64_t fileSize) 108 uint64_t fileSize)
109 { 109 {
110 AttachFile(id, name, fileUuid, fileSize, fileSize, CompressionType_None); 110 AttachFile(id, name, fileUuid, fileSize, fileSize, CompressionType_None);
111 } 111 }
112 112
113 bool FindFile(int64_t id, 113 bool LookupFile(int64_t id,
114 const std::string& name, 114 const std::string& name,
115 std::string& fileUuid, 115 std::string& fileUuid,
116 uint64_t& compressedSize, 116 uint64_t& compressedSize,
117 uint64_t& uncompressedSize, 117 uint64_t& uncompressedSize,
118 CompressionType& compressionType); 118 CompressionType& compressionType);
119 119
120 void SetMainDicomTags(int64_t id, 120 void SetMainDicomTags(int64_t id,
121 const DicomMap& tags); 121 const DicomMap& tags);
122 122
123 void GetMainDicomTags(DicomMap& map, 123 void GetMainDicomTags(DicomMap& map,