CustusX  22.04-rc5
An IGT application
cxFileReaderWriterServiceNull.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 #include "cxLogger.h"
14 
15 namespace cx
16 {
17 
19 {
20 }
21 
23 {
24  return true;
25 }
26 
27 bool FileReaderWriterServiceNull::canRead(const QString &type, const QString &filename)
28 {
29  return false;
30 }
31 
32 std::vector<DataPtr> FileReaderWriterServiceNull::read(const QString &filename)
33 {
34  return std::vector<DataPtr>();
35 }
36 
37 DataPtr FileReaderWriterServiceNull::read(const QString &uid, const QString &filename)
38 {
39  return DataPtr();
40 }
41 
43 {
44  return "";
45 }
46 
48 {
49  return false;
50 }
51 
52 void FileReaderWriterServiceNull::write(DataPtr data, const QString &filename)
53 {
54 
55 }
56 
57 
58 } // cx
59 
60 
62 {
63  return "";
64 }
65 
66 bool cx::FileReaderWriterServiceNull::canWrite(const QString &type, const QString &filename) const
67 {
68  return false;
69 }
70 
71 
73 {
74  return "FileReaderWriterServiceNull";
75 }
76 
78 {
79  return "";
80 }
81 
83 {
84  return vtkImageDataPtr();
85 }
86 
88 {
89  return vtkPolyDataPtr();
90 }
bool canRead(const QString &type, const QString &filename)
void write(DataPtr data, const QString &filename)
std::vector< DataPtr > read(const QString &filename)
vtkPolyDataPtr loadVtkPolyData(QString filename)
vtkImageDataPtr loadVtkImageData(QString filename)
boost::shared_ptr< class Data > DataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
bool canWrite(const QString &type, const QString &filename) const
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
bool readInto(DataPtr data, QString path)
Namespace for all CustusX production code.