author | František Kučera <franta-hg@frantovo.cz> |
Tue, 01 Mar 2022 00:49:46 +0100 | |
branch | v_0 |
changeset 2 | 1eef3d465863 |
parent 1 | 291bdd97fcff |
child 7 | 12e975f807ed |
permissions | -rw-r--r-- |
0
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* Relational pipes |
2
1eef3d465863
update copyright year
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
3 |
* Copyright © 2022 František Kučera (Frantovo.cz, GlobalCode.info) |
0
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
e8205d9206fb
new project relpipe-in-posixmq
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 |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, version 3 of the License. |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
*/ |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
#pragma once |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
#include <iostream> |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
#include <sstream> |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
#include <vector> |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
#include <memory> |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
#include <relpipe/writer/TypeId.h> |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
#include "Configuration.h" |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
namespace relpipe { |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
namespace in { |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
namespace posixmq { |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
class PosixMQCommand { |
1
291bdd97fcff
early version, support text messages only
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
33 |
private: |
291bdd97fcff
early version, support text messages only
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
34 |
std::wstring_convert<codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings. |
0
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
public: |
1
291bdd97fcff
early version, support text messages only
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
36 |
virtual ~PosixMQCommand(); |
291bdd97fcff
early version, support text messages only
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
37 |
|
0
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
void process(std::shared_ptr<writer::RelationalWriter> writer, Configuration& configuration); |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
}; |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
|
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
} |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
} |
e8205d9206fb
new project relpipe-in-posixmq
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
} |