Rev 671 | Rev 977 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 671 | Rev 779 | ||
---|---|---|---|
1 | Redirecting to URL 'https://iland.boku.ac.at/svn/iland/tags/release_1.0/src/core/timeevents.h': |
1 | Redirecting to URL 'https://iland.boku.ac.at/svn/iland/tags/release_1.0/src/core/timeevents.h': |
2 | /********************************************************************************************
|
2 | /********************************************************************************************
|
3 | ** iLand - an individual based forest landscape and disturbance model
|
3 | ** iLand - an individual based forest landscape and disturbance model
|
4 | ** http://iland.boku.ac.at
|
4 | ** http://iland.boku.ac.at
|
5 | ** Copyright (C) 2009- Werner Rammer, Rupert Seidl
|
5 | ** Copyright (C) 2009- Werner Rammer, Rupert Seidl
|
6 | **
|
6 | **
|
7 | ** This program is free software: you can redistribute it and/or modify
|
7 | ** This program is free software: you can redistribute it and/or modify
|
8 | ** it under the terms of the GNU General Public License as published by
|
8 | ** it under the terms of the GNU General Public License as published by
|
9 | ** the Free Software Foundation, either version 3 of the License, or
|
9 | ** the Free Software Foundation, either version 3 of the License, or
|
10 | ** (at your option) any later version.
|
10 | ** (at your option) any later version.
|
11 | **
|
11 | **
|
12 | ** This program is distributed in the hope that it will be useful,
|
12 | ** This program is distributed in the hope that it will be useful,
|
13 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 | ** GNU General Public License for more details.
|
15 | ** GNU General Public License for more details.
|
16 | **
|
16 | **
|
17 | ** You should have received a copy of the GNU General Public License
|
17 | ** You should have received a copy of the GNU General Public License
|
18 | ** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18 | ** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19 | ********************************************************************************************/
|
19 | ********************************************************************************************/
|
20 | 20 | ||
21 | #ifndef TIMEEVENTS_H
|
21 | #ifndef TIMEEVENTS_H
|
22 | #define TIMEEVENTS_H
|
22 | #define TIMEEVENTS_H
|
23 | #include <QtCore>
|
23 | #include <QtCore>
|
24 | /** */
|
24 | /** */
|
25 | class TimeEvents
|
25 | class TimeEvents
|
26 | {
|
26 | {
|
27 | public: |
27 | public: |
28 | TimeEvents(); |
28 | TimeEvents(); |
29 | // setup
|
29 | // setup
|
30 | void clear() { mData.clear(); } |
30 | void clear() { mData.clear(); } |
31 | bool loadFromString(const QString &source); |
31 | bool loadFromString(const QString &source); |
32 | bool loadFromFile(const QString &fileName); |
32 | bool loadFromFile(const QString &fileName); |
33 | // excecute
|
33 | // excecute
|
34 | void run(); ///< execute all settings |
34 | void run(); ///< execute all settings |
35 | 35 | ||
36 | private: |
36 | private: |
37 | QMultiMap<int, QPair<QString, QVariant> > mData; |
37 | QMultiMap<int, QPair<QString, QVariant> > mData; |
38 | }; |
38 | }; |
39 | 39 | ||
40 | #endif // TIMEEVENTS_H
|
40 | #endif // TIMEEVENTS_H
|
41 | 41 |