author | František Kučera <franta-hg@frantovo.cz> |
Sun, 26 May 2019 22:15:05 +0200 | |
branch | v_0 |
changeset 30 | 5261dfd3b952 |
parent 28 | 4fdbe30d8c58 |
child 35 | eafffeea6a3e |
permissions | -rw-r--r-- |
28
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* Relational pipes |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
* Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* (at your option) any later version. |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
*/ |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
#pragma once |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
#include <string> |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
using namespace std; |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
namespace relpipe { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
namespace tr { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
namespace awk { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
class AwkException { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
private: |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
wstring message; |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
public: |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
AwkException(wstring message) : message(message) { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
} |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
wstring getMessge() { |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
return message; |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
} |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
}; |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
} |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
} |
4fdbe30d8c58
introduce AwkException
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
} |