Rev 639 | Rev 779 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 639 | Rev 671 | ||
---|---|---|---|
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 | /********************************************************************************************
|
|
- | 3 | ** iLand - an individual based forest landscape and disturbance model
|
|
- | 4 | ** http://iland.boku.ac.at
|
|
- | 5 | ** Copyright (C) 2009- Werner Rammer, Rupert Seidl
|
|
- | 6 | **
|
|
- | 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
|
|
- | 9 | ** the Free Software Foundation, either version 3 of the License, or
|
|
- | 10 | ** (at your option) any later version.
|
|
- | 11 | **
|
|
- | 12 | ** This program is distributed in the hope that it will be useful,
|
|
- | 13 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
- | 14 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
- | 15 | ** GNU General Public License for more details.
|
|
- | 16 | **
|
|
- | 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/>.
|
|
- | 19 | ********************************************************************************************/
|
|
- | 20 | ||
2 | #ifndef TIMEEVENTS_H
|
21 | #ifndef TIMEEVENTS_H
|
3 | #define TIMEEVENTS_H
|
22 | #define TIMEEVENTS_H
|
4 | #include <QtCore>
|
23 | #include <QtCore>
|
5 | /** */
|
24 | /** */
|
6 | class TimeEvents
|
25 | class TimeEvents
|
7 | {
|
26 | {
|
8 | public: |
27 | public: |
9 | TimeEvents(); |
28 | TimeEvents(); |
10 | // setup
|
29 | // setup
|
11 | void clear() { mData.clear(); } |
30 | void clear() { mData.clear(); } |
12 | bool loadFromString(const QString &source); |
31 | bool loadFromString(const QString &source); |
13 | bool loadFromFile(const QString &fileName); |
32 | bool loadFromFile(const QString &fileName); |
14 | // excecute
|
33 | // excecute
|
15 | void run(); ///< execute all settings |
34 | void run(); ///< execute all settings |
16 | 35 | ||
17 | private: |
36 | private: |
18 | QMultiMap<int, QPair<QString, QVariant> > mData; |
37 | QMultiMap<int, QPair<QString, QVariant> > mData; |
19 | }; |
38 | }; |
20 | 39 | ||
21 | #endif // TIMEEVENTS_H
|
40 | #endif // TIMEEVENTS_H
|
22 | 41 |