ctkDICOMIndexer.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. All rights reserved.
  5. Distributed under a BSD License. See LICENSE.txt file.
  6. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the above copyright notice for more information.
  9. =========================================================================*/
  10. #ifndef __ctkDICOMIndexer_h
  11. #define __ctkDICOMIndexer_h
  12. // Qt includes
  13. #include <QSqlDatabase>
  14. // CTK includes
  15. #include <ctkPimpl.h>
  16. #include "CTKDICOMCoreExport.h"
  17. class ctkDICOMIndexerPrivate;
  18. class CTK_DICOM_CORE_EXPORT ctkDICOMIndexer
  19. {
  20. public:
  21. explicit ctkDICOMIndexer();
  22. virtual ~ctkDICOMIndexer();
  23. /// add directory to database and optionally copy files to destinationDirectory
  24. void addDirectory(QSqlDatabase database, const QString& directoryName, const QString& destinationDirectoryName = "");
  25. void refreshDatabase(QSqlDatabase database, const QString& directoryName);
  26. private:
  27. CTK_DECLARE_PRIVATE(ctkDICOMIndexer);
  28. };
  29. #endif