comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 4588:94147ce2f097 db-changes

fix build on os x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Mar 2021 17:15:01 +0100
parents 888868a5dc4e
children bec74e29f86b
comparison
equal deleted inserted replaced
4587:888868a5dc4e 4588:94147ce2f097
43 43
44 namespace Orthanc 44 namespace Orthanc
45 { 45 {
46 class DatabaseLookup; 46 class DatabaseLookup;
47 class ParsedDicomFile; 47 class ParsedDicomFile;
48 class ServerIndexChange; 48 struct ServerIndexChange;
49 49
50 class StatelessDatabaseOperations : public boost::noncopyable 50 class StatelessDatabaseOperations : public boost::noncopyable
51 { 51 {
52 public: 52 public:
53 typedef std::list<FileInfo> Attachments; 53 typedef std::list<FileInfo> Attachments;
406 406
407 IDatabaseWrapper& db_; 407 IDatabaseWrapper& db_;
408 boost::mutex databaseMutex_; // TODO - REMOVE 408 boost::mutex databaseMutex_; // TODO - REMOVE
409 std::unique_ptr<ITransactionContextFactory> factory_; 409 std::unique_ptr<ITransactionContextFactory> factory_;
410 unsigned int maxRetries_; 410 unsigned int maxRetries_;
411 std::unique_ptr<MainDicomTagsRegistry> mainDicomTagsRegistry_; 411 boost::shared_ptr<MainDicomTagsRegistry> mainDicomTagsRegistry_; // "shared_ptr" because of PImpl
412 bool hasFlushToDisk_; 412 bool hasFlushToDisk_;
413 413
414 void NormalizeLookup(std::vector<DatabaseConstraint>& target, 414 void NormalizeLookup(std::vector<DatabaseConstraint>& target,
415 const DatabaseLookup& source, 415 const DatabaseLookup& source,
416 ResourceType level) const; 416 ResourceType level) const;