include/relpipe/reader/handlers/RelationalReaderBaseHandler.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 09 Sep 2018 21:01:17 +0200
branchv_0
changeset 22 e81019af67dc
parent 19 3e1308e7606d
child 29 755978b0935c
permissions -rw-r--r--
use AttributeMetadata instead of std::pair for relation header
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"
22
e81019af67dc use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents: 19
diff changeset
     6
#include "AttributeMetadata.h"
16
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 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
	virtual ~RelationalReaderBaseHadler() = default;
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
22
e81019af67dc use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents: 19
diff changeset
    16
	virtual void startRelation(string_t name, std::vector<AttributeMetadata> attributes) = 0;
19
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    17
22
e81019af67dc use AttributeMetadata instead of std::pair for relation header
František Kučera <franta-hg@frantovo.cz>
parents: 19
diff changeset
    18
	virtual void endOfPipe() = 0;
16
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
};
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
}
19
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    24
}