# HG changeset patch # User František Kučera # Date 1535209451 -7200 # Node ID 2d71092864084169bc63c0aa37e0b2ca1743008e # Parent 83c3cf486bdf25fd582744196f6622d98452ac2f remove format.h and use constants.h from lib-protocol diff -r 83c3cf486bdf -r 2d7109286408 include/relpipe/reader/TypeId.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/relpipe/reader/TypeId.h Sat Aug 25 17:04:11 2018 +0200 @@ -0,0 +1,13 @@ +#pragma once + +namespace relpipe { +namespace reader { + +enum class TypeId { + BOOLEAN = 1, + INTEGER = 2, + STRING = 3, +}; + +} +} \ No newline at end of file diff -r 83c3cf486bdf -r 2d7109286408 nbproject/configurations.xml --- a/nbproject/configurations.xml Sat Aug 25 11:45:05 2018 +0200 +++ b/nbproject/configurations.xml Sat Aug 25 17:04:11 2018 +0200 @@ -11,7 +11,7 @@ src/IntegerDataTypeReader.h include/relpipe/reader/RelpipeReaderException.h src/StringDataTypeReader.h - src/format.h + include/relpipe/reader/TypeId.h include/relpipe/reader/typedefs.h + + @@ -78,8 +80,6 @@ - - @@ -116,6 +116,8 @@ tool="3" flavor2="0"> + + @@ -130,8 +132,6 @@ - - diff -r 83c3cf486bdf -r 2d7109286408 src/BooleanDataTypeReader.h --- a/src/BooleanDataTypeReader.h Sat Aug 25 11:45:05 2018 +0200 +++ b/src/BooleanDataTypeReader.h Sat Aug 25 17:04:11 2018 +0200 @@ -3,9 +3,10 @@ #include #include +#include + #include "../include/typedefs.h" #include "../include/DataTypeReader.h" -#include "format.h" namespace relpipe { namespace reader { diff -r 83c3cf486bdf -r 2d7109286408 src/IntegerDataTypeReader.h --- a/src/IntegerDataTypeReader.h Sat Aug 25 11:45:05 2018 +0200 +++ b/src/IntegerDataTypeReader.h Sat Aug 25 17:04:11 2018 +0200 @@ -5,9 +5,10 @@ #include #include +#include + #include "../include/typedefs.h" #include "../include/DataTypeReader.h" -#include "format.h" namespace relpipe { namespace reader { diff -r 83c3cf486bdf -r 2d7109286408 src/StringDataTypeReader.h --- a/src/StringDataTypeReader.h Sat Aug 25 11:45:05 2018 +0200 +++ b/src/StringDataTypeReader.h Sat Aug 25 17:04:11 2018 +0200 @@ -7,9 +7,10 @@ #include #include +#include + #include "../include/typedefs.h" #include "../include/DataTypeReader.h" -#include "format.h" namespace relpipe { namespace reader { diff -r 83c3cf486bdf -r 2d7109286408 src/format.h --- a/src/format.h Sat Aug 25 11:45:05 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -#pragma once - -#include -#include - -namespace relpipe { -namespace reader { - -const integer_t DATA_TYPE_ID_BOOLEAN = 1; -const integer_t DATA_TYPE_ID_INTEGER = 2; -const integer_t DATA_TYPE_ID_STRING = 3; - -const string_t DATA_TYPE_CODE_BOOLEAN = L"boolean"; -const string_t DATA_TYPE_CODE_INTEGER = L"integer"; -const string_t DATA_TYPE_CODE_STRING = L"string"; - - -/** - * With respect for the tradition and computer pioneers, we use same numbers as in ASCII texts: - * - * 1C FS ␜ File Separator - * 1D GS ␝ Group Separator - * 1E RS ␞ Record Separator - * 1F US ␟ Unit Separator - * - */ -const integer_t DATA_PART_START = 0x1D; -const integer_t DATA_PART_ROW = 0x1E; - -} -} \ No newline at end of file