include/relpipe/reader/handlers/RelationalReaderBaseHandler.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 08 Sep 2018 19:42:29 +0200
branchv_0
changeset 19 3e1308e7606d
parent 16 9b8139bb0519
child 22 e81019af67dc
permissions -rw-r--r--
add endOfPipe() to handlers
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
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
namespace relpipe {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
namespace reader {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
namespace handlers {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
class RelationalReaderBaseHadler {
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
public:
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
	virtual ~RelationalReaderBaseHadler() = default;
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
19
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    15
    virtual void startRelation(string_t name, std::vector<std::pair<string_t, TypeId>> attributes) = 0;
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    16
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    17
    virtual void endOfPipe() = 0;
16
9b8139bb0519 handler structure
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
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
}
19
3e1308e7606d add endOfPipe() to handlers
František Kučera <franta-hg@frantovo.cz>
parents: 16
diff changeset
    23
}