comparison OrthancServer/DatabaseWrapper.h @ 206:4453a010d0db

flush to disk thread
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 12:03:18 +0100
parents 7f4acf490179
children 8098448bd827
comparison
equal deleted inserted replaced
205:6ab754744446 206:4453a010d0db
60 Internals::SignalRemainingAncestor* signalRemainingAncestor_; 60 Internals::SignalRemainingAncestor* signalRemainingAncestor_;
61 61
62 void Open(); 62 void Open();
63 63
64 public: 64 public:
65 void SetGlobalProperty(const std::string& name, 65 void SetGlobalProperty(GlobalProperty property,
66 const std::string& value); 66 const std::string& value);
67 67
68 bool LookupGlobalProperty(std::string& target, 68 bool LookupGlobalProperty(std::string& target,
69 const std::string& name); 69 GlobalProperty property);
70 70
71 std::string GetGlobalProperty(const std::string& name, 71 std::string GetGlobalProperty(GlobalProperty property,
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
188 188
189 const char* GetErrorMessage() const 189 const char* GetErrorMessage() const
190 { 190 {
191 return db_.GetErrorMessage(); 191 return db_.GetErrorMessage();
192 } 192 }
193
194 void FlushToDisk()
195 {
196 db_.FlushToDisk();
197 }
193 }; 198 };
194 } 199 }