# HG changeset patch # User František Kučera # Date 1535211019 -7200 # Node ID d505eaedc35ecf34abc9fe5ae7aa235388e6108b # Parent 53f4887dadb4c4955003dd154fc83b34a2310a44 remove format.h and use constants.h from lib-protocol diff -r 53f4887dadb4 -r d505eaedc35e nbproject/configurations.xml --- a/nbproject/configurations.xml Sat Aug 25 10:13:00 2018 +0200 +++ b/nbproject/configurations.xml Sat Aug 25 17:30:19 2018 +0200 @@ -14,7 +14,6 @@ src/StreamRelationalWriter.h src/types/StringDataTypeWriter.h include/relpipe/writer/TypeId.h - src/format.h include/relpipe/writer/typedefs.h - - @@ -138,8 +135,6 @@ - - diff -r 53f4887dadb4 -r d505eaedc35e src/StreamRelationalWriter.h --- a/src/StreamRelationalWriter.h Sat Aug 25 10:13:00 2018 +0200 +++ b/src/StreamRelationalWriter.h Sat Aug 25 17:30:19 2018 +0200 @@ -4,10 +4,11 @@ #include #include +#include + #include "../include/relpipe/writer/typedefs.h" #include "../include/relpipe/writer/RelationalWriter.h" #include "../include/relpipe/writer/TypeId.h" -#include "format.h" #include "DataTypeWriterBase.h" #include "types/BooleanDataTypeWriter.h" #include "types/IntegerDataTypeWriter.h" @@ -16,6 +17,8 @@ namespace relpipe { namespace writer { +using namespace relpipe::protocol; + class StreamRelationalWriter : public RelationalWriter { private: std::ostream &output; diff -r 53f4887dadb4 -r d505eaedc35e src/format.h --- a/src/format.h Sat Aug 25 10:13:00 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#pragma once - -#include -#include - -#include "../include/relpipe/writer/TypeId.h" - -namespace relpipe { -namespace writer { - -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 diff -r 53f4887dadb4 -r d505eaedc35e src/types/BooleanDataTypeWriter.h --- a/src/types/BooleanDataTypeWriter.h Sat Aug 25 10:13:00 2018 +0200 +++ b/src/types/BooleanDataTypeWriter.h Sat Aug 25 17:30:19 2018 +0200 @@ -3,14 +3,16 @@ #include #include +#include + #include "../../include/relpipe/writer/RelpipeWriterException.h" #include "../DataTypeWriter.h" -#include "../format.h" namespace relpipe { namespace writer { namespace types { +using namespace relpipe::protocol; using namespace relpipe::writer; class BooleanDataTypeWriter : public DataTypeWriter { diff -r 53f4887dadb4 -r d505eaedc35e src/types/IntegerDataTypeWriter.h --- a/src/types/IntegerDataTypeWriter.h Sat Aug 25 10:13:00 2018 +0200 +++ b/src/types/IntegerDataTypeWriter.h Sat Aug 25 17:30:19 2018 +0200 @@ -5,13 +5,15 @@ #include #include +#include + #include "../DataTypeWriter.h" -#include "../format.h" namespace relpipe { namespace writer { namespace types { +using namespace relpipe::protocol; using namespace relpipe::writer; /** diff -r 53f4887dadb4 -r d505eaedc35e src/types/StringDataTypeWriter.h --- a/src/types/StringDataTypeWriter.h Sat Aug 25 10:13:00 2018 +0200 +++ b/src/types/StringDataTypeWriter.h Sat Aug 25 17:30:19 2018 +0200 @@ -7,13 +7,15 @@ #include #include +#include + #include "../DataTypeWriter.h" -#include "../format.h" namespace relpipe { namespace writer { namespace types { +using namespace relpipe::protocol; using namespace relpipe::writer; /** * The prototype does not recognize any encoding,