comparison OrthancServer/DatabaseWrapper.h @ 758:67e6400fca03 query-retrieve

integration mainline -> query-retrieve
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Apr 2014 16:34:09 +0200
parents 1cd3ec544039
children 649d47854314
comparison
equal deleted inserted replaced
681:3bdb5db8e839 758:67e6400fca03
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2013 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, either version 3 of the 8 * published by the Free Software Foundation, either version 3 of the
65 void GetChangesInternal(Json::Value& target, 65 void GetChangesInternal(Json::Value& target,
66 SQLite::Statement& s, 66 SQLite::Statement& s,
67 int64_t since, 67 int64_t since,
68 unsigned int maxResults); 68 unsigned int maxResults);
69 69
70 void GetExportedResources(Json::Value& target, 70 void GetExportedResourcesInternal(Json::Value& target,
71 SQLite::Statement& s, 71 SQLite::Statement& s,
72 int64_t since, 72 int64_t since,
73 unsigned int maxResults); 73 unsigned int maxResults);
74 74
75 public: 75 public:
76 void SetGlobalProperty(GlobalProperty property, 76 void SetGlobalProperty(GlobalProperty property,
77 const std::string& value); 77 const std::string& value);
78 78
113 113
114 bool LookupMetadata(std::string& target, 114 bool LookupMetadata(std::string& target,
115 int64_t id, 115 int64_t id,
116 MetadataType type); 116 MetadataType type);
117 117
118 bool ListAvailableMetadata(std::list<MetadataType>& target, 118 void ListAvailableMetadata(std::list<MetadataType>& target,
119 int64_t id); 119 int64_t id);
120 120
121 std::string GetMetadata(int64_t id, 121 std::string GetMetadata(int64_t id,
122 MetadataType type, 122 MetadataType type,
123 const std::string& defaultValue = ""); 123 const std::string& defaultValue = "");
126 int64_t id, 126 int64_t id,
127 MetadataType type); 127 MetadataType type);
128 128
129 void AddAttachment(int64_t id, 129 void AddAttachment(int64_t id,
130 const FileInfo& attachment); 130 const FileInfo& attachment);
131
132 void DeleteAttachment(int64_t id,
133 FileContentType attachment);
131 134
132 void ListAvailableAttachments(std::list<FileContentType>& result, 135 void ListAvailableAttachments(std::list<FileContentType>& result,
133 int64_t id); 136 int64_t id);
134 137
135 bool LookupAttachment(FileInfo& attachment, 138 bool LookupAttachment(FileInfo& attachment,