QXRD
0.11.16
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qxrd
source
submodules
qceplib
qceplib-base
qcepimagedataformat.h
Go to the documentation of this file.
1
#ifndef QCEPIMAGEDATAFORMAT_H
2
#define QCEPIMAGEDATAFORMAT_H
3
4
#include "
qcepmacros.h
"
5
6
#include <QObject>
7
#include <QString>
8
9
#include "
qcepimagedata-ptr.h
"
10
11
class
QcepImageDataFormatBase
12
{
13
public
:
14
QcepImageDataFormatBase
(QString
name
)
15
:
m_Name
(name)
16
{
17
}
18
19
virtual
~QcepImageDataFormatBase
()
20
{
21
}
22
23
enum
Priority
{
24
Unable
= 0,
25
CatchAll
= 1,
26
Versatile
= 2,
27
Specific
= 3
28
};
29
30
virtual
Priority
priority
()
const
= 0;
31
32
QString
name
()
const
33
{
34
return
m_Name
;
35
}
36
37
void
setName
(QString
name
)
38
{
39
m_Name
=
name
;
40
}
41
42
enum
{
43
NoOverwrite
,
44
CanOverwrite
45
};
46
47
public
:
48
void
mkPath
(QString filePath);
49
QString
uniqueFileName
(QString
name
);
50
51
private
:
52
QString
m_Name
;
53
};
54
55
template
<
typename
T>
56
class
QcepImageDataFormat
:
public
QcepImageDataFormatBase
57
{
58
public
:
59
QcepImageDataFormat
(QString fmtname);
60
61
virtual
QcepImageDataFormat<T>
*
canLoadFile
(QString path) = 0;
62
virtual
QcepImageDataFormat<T>
*
canSaveFile
(QString path) = 0;
63
virtual
QcepImageDataFormat<T>
*
loadFile
(QString path,
QcepImageData<T>
*img) = 0;
64
virtual
QcepImageDataFormat<T>
*
saveFile
(QString path,
QcepImageData<T>
*img,
int
canOverwrite) = 0;
65
};
66
67
#endif
QcepImageData
Definition:
qcepimagedata-ptr.h:7
QcepImageDataFormatBase::uniqueFileName
QString uniqueFileName(QString name)
Definition:
qcepimagedataformat.cpp:16
QcepImageDataFormatBase::setName
void setName(QString name)
Definition:
qcepimagedataformat.h:37
QcepImageDataFormatBase::Priority
Priority
Definition:
qcepimagedataformat.h:23
QcepImageDataFormat::loadFile
virtual QcepImageDataFormat< T > * loadFile(QString path, QcepImageData< T > *img)=0
QcepImageDataFormatBase::CatchAll
Definition:
qcepimagedataformat.h:25
qcepmacros.h
QcepImageDataFormatBase::CanOverwrite
Definition:
qcepimagedataformat.h:44
QcepImageDataFormatBase::name
QString name() const
Definition:
qcepimagedataformat.h:32
QcepImageDataFormatBase::Specific
Definition:
qcepimagedataformat.h:27
QcepImageDataFormat::canSaveFile
virtual QcepImageDataFormat< T > * canSaveFile(QString path)=0
QcepImageDataFormatBase::mkPath
void mkPath(QString filePath)
Definition:
qcepimagedataformat.cpp:6
QcepImageDataFormatBase::QcepImageDataFormatBase
QcepImageDataFormatBase(QString name)
Definition:
qcepimagedataformat.h:14
QcepImageDataFormat::QcepImageDataFormat
QcepImageDataFormat(QString fmtname)
Definition:
qcepimagedataformat.cpp:41
QcepImageDataFormat::saveFile
virtual QcepImageDataFormat< T > * saveFile(QString path, QcepImageData< T > *img, int canOverwrite)=0
QcepImageDataFormatBase::m_Name
QString m_Name
Definition:
qcepimagedataformat.h:52
QcepImageDataFormatBase::Versatile
Definition:
qcepimagedataformat.h:26
QcepImageDataFormatBase::Unable
Definition:
qcepimagedataformat.h:24
QcepImageDataFormat
Definition:
qcepimagedataformat-ptr.h:4
qcepimagedata-ptr.h
QcepImageDataFormatBase::~QcepImageDataFormatBase
virtual ~QcepImageDataFormatBase()
Definition:
qcepimagedataformat.h:19
QcepImageDataFormatBase
Definition:
qcepimagedataformat.h:11
QcepImageDataFormatBase::NoOverwrite
Definition:
qcepimagedataformat.h:43
QcepImageDataFormatBase::priority
virtual Priority priority() const =0
QcepImageDataFormat::canLoadFile
virtual QcepImageDataFormat< T > * canLoadFile(QString path)=0
Generated by
1.8.10