Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
qgsprojectfiletransform.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojectfiletransform.h - description
3
-------------------
4
begin : Sun 15 dec 2007
5
copyright : (C) 2007 by Magnus Homann
6
email : magnus at homann.se
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
25
/* $Id$ */
26
27
#ifndef QGSPROJECTFILETRANSFORM_H
28
#define QGSPROJECTFILETRANSFORM_H
29
30
#include <QString>
31
#include <QDomDocument>
32
#include <vector>
33
#include "
qgsprojectversion.h
"
34
35
class
QgsProjectFileTransform
36
{
37
public
:
38
//Default constructor
39
//QgsProjectfiletransform() {}
40
~QgsProjectFileTransform
() {}
41
46
QgsProjectFileTransform
( QDomDocument & domDocument,
47
QgsProjectVersion
version )
48
{
49
mDom
= domDocument;
50
mCurrentVersion
= version;
51
}
52
53
54
bool
updateRevision
(
QgsProjectVersion
version );
55
58
void
dump
();
59
60
61
private
:
62
63
typedef
struct
64
{
65
QgsProjectVersion
from
;
66
QgsProjectVersion
to
;
67
void (
QgsProjectFileTransform
::* transformFunc )();
68
}
transform
;
69
70
static
transform
transformers
[];
71
72
QDomDocument
mDom
;
73
QgsProjectVersion
mCurrentVersion
;
74
75
// Transformer functions below. Declare functions here,
76
// define them in qgsprojectfiletransform.cpp and add them
77
// to the transformArray with proper version number
78
void
transformNull
() {};
// Do absolutely nothing
79
void
transform081to090
();
80
void
transform091to0100
();
81
void
transform0100to0110
();
82
void
transform0110to1000
();
83
void
transform1100to1200
();
84
void
transform1400to1500
();
85
};
86
87
88
#endif //QGSPROJECTFILETRANSFORM_H
89
Generated on Thu Sep 19 2013 17:30:54 for Quantum GIS API Documentation by
1.8.4