NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxFileManagerServiceNull.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
13 
14 #include "cxLogger.h"
15 
16 namespace cx
17 {
19 {
20 
21 }
22 
24 {}
25 
27 {
28  return true;
29 }
30 
31 std::vector<DataPtr> FileManagerServiceNull::read(const QString &filename)
32 {
33  printWarning();
34  return std::vector<DataPtr>();
35 }
36 
37 bool FileManagerServiceNull::canLoad(const QString &type, const QString &filename)
38 {
39  printWarning();
40  return false;
41 }
42 
43 DataPtr FileManagerServiceNull::load(const QString &uid, const QString &filename)
44 {
45  printWarning();
46  return DataPtr();
47 }
48 
50 {
51  printWarning();
52  return "";
53 }
54 
55 bool FileManagerServiceNull::readInto(DataPtr data, QString path)
56 {
57  printWarning();
58  return false;
59 }
60 
62 {
63  printWarning();
64  return "";
65 }
66 
68 {
69  printWarning();
70  return vtkPolyDataPtr();
71 }
72 
74 {
75  printWarning();
76  return vtkImageDataPtr();
77 }
78 
79 void FileManagerServiceNull::save(DataPtr data, const QString &filename)
80 {
81  printWarning();printWarning();
82 }
83 
85 {
86  printWarning();
87 }
88 
90 {
91  printWarning();
92 }
93 
94 std::vector<FileReaderWriterServicePtr> FileManagerServiceNull::getExportersForDataType(QString dataType)
95 {
96  printWarning();
97  return std::vector<FileReaderWriterServicePtr>();
98 }
99 
100 std::vector<FileReaderWriterServicePtr> FileManagerServiceNull::getImportersForDataType(QString dataType)
101 {
102  printWarning();
103  return std::vector<FileReaderWriterServicePtr>();
104 }
105 
106 QString FileManagerServiceNull::getFileReaderName(const QString &filename)
107 {
108  printWarning();
109  return QString();
110 }
111 
112 void FileManagerServiceNull::printWarning() const
113 {
114  reportWarning("Trying to use FileManagerServiceNull.");
115 }
116 
117 
118 }
cxLogger.h
cxFileManagerServiceNull.h
cx::FileManagerServiceNull::read
std::vector< DataPtr > read(const QString &filename)
Definition: cxFileManagerServiceNull.cpp:31
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::FileManagerServiceNull::getFileReaderName
virtual QString getFileReaderName(const QString &filename)
Definition: cxFileManagerServiceNull.cpp:106
cx::FileManagerServiceNull::load
DataPtr load(const QString &uid, const QString &filename)
Definition: cxFileManagerServiceNull.cpp:43
cx::FileManagerServiceNull::getImportersForDataType
std::vector< FileReaderWriterServicePtr > getImportersForDataType(QString dataType)
Definition: cxFileManagerServiceNull.cpp:100
vtkImageDataPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Definition: cxVideoConnectionWidget.h:30
cx::FileManagerServiceNull::getExportersForDataType
std::vector< FileReaderWriterServicePtr > getExportersForDataType(QString dataType)
Definition: cxFileManagerServiceNull.cpp:94
cx::FileManagerServiceNull::canLoad
bool canLoad(const QString &type, const QString &filename)
Definition: cxFileManagerServiceNull.cpp:37
cx::FileManagerServiceNull::FileManagerServiceNull
FileManagerServiceNull()
Definition: cxFileManagerServiceNull.cpp:18
cx::FileManagerServiceNull::findDataTypeFromFile
QString findDataTypeFromFile(QString filename)
Definition: cxFileManagerServiceNull.cpp:61
cx::FileManagerServiceNull::removeFileReaderWriter
void removeFileReaderWriter(FileReaderWriterService *service)
Definition: cxFileManagerServiceNull.cpp:89
cx::FileManagerServiceNull::readInto
bool readInto(DataPtr data, QString path)
Definition: cxFileManagerServiceNull.cpp:55
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxCenterlineRegistration.h:42
cx::FileManagerServiceNull::~FileManagerServiceNull
virtual ~FileManagerServiceNull()
Definition: cxFileManagerServiceNull.cpp:23
cx::FileManagerServiceNull::loadVtkPolyData
vtkPolyDataPtr loadVtkPolyData(QString filename)
Definition: cxFileManagerServiceNull.cpp:67
cx::FileManagerServiceNull::loadVtkImageData
vtkImageDataPtr loadVtkImageData(QString filename)
Definition: cxFileManagerServiceNull.cpp:73
cx::FileReaderWriterService
Definition: cxFileReaderWriterService.h:30
cx::FileManagerServiceNull::canLoadDataType
QString canLoadDataType() const
Definition: cxFileManagerServiceNull.cpp:49
cx::reportWarning
void reportWarning(QString msg)
Definition: cxLogger.cpp:70
cx::FileManagerServiceNull::save
void save(DataPtr data, const QString &filename)
Definition: cxFileManagerServiceNull.cpp:79
cx::FileManagerServiceNull::addFileReaderWriter
void addFileReaderWriter(FileReaderWriterService *service)
Definition: cxFileManagerServiceNull.cpp:84
cx::FileManagerServiceNull::isNull
virtual bool isNull()
Definition: cxFileManagerServiceNull.cpp:26