src/format.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 25 Aug 2018 10:13:00 +0200
branchv_0
changeset 22 53f4887dadb4
parent 20 bef6648e79b1
permissions -rw-r--r--
todo comments

#pragma once

#include <cstdint>
#include <string>

#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;

}
}