include/relpipe/reader/handlers/RelationalReaderStringHandler.h
author František Kučera <franta-hg@frantovo.cz>
Mon, 03 Sep 2018 23:40:12 +0200
branchv_0
changeset 18 e11f1ad20826
parent 16 9b8139bb0519
child 29 755978b0935c
permissions -rw-r--r--
read using std::function
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
#pragma once
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
#include <vector>
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
#include "../TypeId.h"
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
#include "RelationalReaderBaseHandler.h"
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
namespace relpipe {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
namespace reader {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
namespace handlers {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
class RelationalReaderStringHadler : public RelationalReaderBaseHadler {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
public:
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
	virtual void attribute(const string_t& value) = 0;
18
e11f1ad20826 read using std::function
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    16
	
e11f1ad20826 read using std::function
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    17
	// TODO: null values:
e11f1ad20826 read using std::function
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    18
	// a) special constant for null value
e11f1ad20826 read using std::function
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    19
	// b) virtual void attribute(const string_t& value, boolean_t isNull) = 0;
e11f1ad20826 read using std::function
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    20
	// c) virtual void null() = 0;
16
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
};
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
}
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
}
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
}