author | František Kučera <franta-hg@frantovo.cz> |
Sat, 12 Dec 2020 19:52:38 +0100 | |
branch | v_0 |
changeset 5 | bee7acb57330 |
parent 3 | ae8775e0bc7a |
permissions | -rw-r--r-- |
3
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* Relational pipes |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
* Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info) |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
ae8775e0bc7a
configurable/modular dialects and escaping
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 |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, version 3 of the License. |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
*/ |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
#pragma once |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
#include "INIWriter.h" |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
namespace relpipe { |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
namespace out { |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
namespace ini { |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
class INIWriter; |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
class Dialect { |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
public: |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
/** |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
* Configure the writer by calling its setOption() method. |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
* |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
* The dialect may be also derived from another dialect (extend or modify it), |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
* but obviously there might be no cyclic dependencies among them. |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
*/ |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
virtual void apply(INIWriter& writer) = 0; |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
virtual ~Dialect() { |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
} |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
}; |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
} |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
} |
ae8775e0bc7a
configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
} |