author | František Kučera <franta-hg@frantovo.cz> |
Mon, 13 Aug 2018 21:30:32 +0200 | |
branch | v_0 |
changeset 10 | 7fe3975f7e4b |
parent 4 | da021e58c946 |
child 13 | 543f1613c2da |
permissions | -rw-r--r-- |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#include <string> |
10
7fe3975f7e4b
relpipe-lib-reader: move public header files to: include/relpipe/reader/
František Kučera <franta-hg@frantovo.cz>
parents:
4
diff
changeset
|
2 |
#include "../include/relpipe/reader/DataTypeReaderBase.h" |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
|
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
namespace relpipe { |
4
da021e58c946
rename 'writer' namespace to 'reader'
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
5 |
namespace reader { |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
|
2
fc3a84a62dd9
rename writers to readers
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
7 |
bool DataTypeReaderBase::supports(const integer_t &dataType) { |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
return dataType == typeId; |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
} |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
|
2
fc3a84a62dd9
rename writers to readers
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
11 |
bool DataTypeReaderBase::supports(const string_t &dataType) { |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
return dataType == typeCode; |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
} |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
|
2
fc3a84a62dd9
rename writers to readers
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
15 |
integer_t DataTypeReaderBase::getTypeId() { |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
return typeId; |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
} |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
|
2
fc3a84a62dd9
rename writers to readers
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
19 |
string_t DataTypeReaderBase::getTypeCode() { |
1
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
return typeCode; |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
} |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
|
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
} |
c80d55cdb42d
copy of .cpp and .h from relpipe-lib-writer.cpp
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
} |