# HG changeset patch # User František Kučera # Date 1531515729 -7200 # Node ID cdfb91189c9e1b792975631e1318fe3ddbb9eb08 # Parent 1a574113da2097aad745160e5bfbf98cfdc597cb split common.h into typedefs.h and format.h diff -r 1a574113da20 -r cdfb91189c9e include/DataTypeWriterBase.h --- a/include/DataTypeWriterBase.h Mon Jul 09 00:43:35 2018 +0200 +++ b/include/DataTypeWriterBase.h Fri Jul 13 23:02:09 2018 +0200 @@ -1,7 +1,7 @@ #pragma once #include -#include "common.h" +#include "typedefs.h" namespace relpipe { namespace writer { diff -r 1a574113da20 -r cdfb91189c9e include/common.h --- a/include/common.h Mon Jul 09 00:43:35 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -#pragma once - -#include -#include - -namespace relpipe { -namespace writer { - -using octet_t = uint8_t; -using integer_t = uint64_t; -using boolean_t = bool; -using string_t = std::wstring; - -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 diff -r 1a574113da20 -r cdfb91189c9e include/typedefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/typedefs.h Fri Jul 13 23:02:09 2018 +0200 @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +namespace relpipe { +namespace writer { + +using octet_t = uint8_t; +using integer_t = uint64_t; +using boolean_t = bool; +using string_t = std::wstring; + +} +} \ No newline at end of file diff -r 1a574113da20 -r cdfb91189c9e nbproject/configurations.xml --- a/nbproject/configurations.xml Mon Jul 09 00:43:35 2018 +0200 +++ b/nbproject/configurations.xml Fri Jul 13 23:02:09 2018 +0200 @@ -6,7 +6,7 @@ projectFiles="true"> include/DataTypeWriter.h include/DataTypeWriterBase.h - include/common.h + include/typedefs.h src/DataTypeWriter.cpp src/DataTypeWriterBase.cpp + src/format.h - + + + @@ -75,12 +78,14 @@ - + + + diff -r 1a574113da20 -r cdfb91189c9e src/format.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/format.h Fri Jul 13 23:02:09 2018 +0200 @@ -0,0 +1,31 @@ +#pragma once + +#include +#include + +namespace relpipe { +namespace writer { + +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