mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
m::Reader Struct Referenceabstract

An interface for all readers. More...

#include <Reader.hpp>

Inheritance diagram for m::Reader:
[legend]
Collaboration diagram for m::Reader:
[legend]

Public Member Functions

 Reader (const Table &table, Diagnostic &diag, Scheduler::Transaction *transaction=nullptr)
 
virtual ~Reader ()
 
virtual void operator() (std::istream &in, const char *name="-")=0
 

Data Fields

const Tabletable
 the table to insert the data into
 
Diagnosticdiag
 
Scheduler::Transactiontransaction
 

Detailed Description

An interface for all readers.

A reader takes input from a stream (file, network, etc.), matches it to the schema of a table, and inserts the data into the table's store.

Definition at line 15 of file Reader.hpp.

Constructor & Destructor Documentation

◆ Reader()

m::Reader::Reader ( const Table table,
Diagnostic diag,
Scheduler::Transaction transaction = nullptr 
)
inline

Definition at line 22 of file Reader.hpp.

◆ ~Reader()

virtual m::Reader::~Reader ( )
inlinevirtual

Definition at line 23 of file Reader.hpp.

Member Function Documentation

◆ operator()()

virtual void m::Reader::operator() ( std::istream &  in,
const char *  name = "-" 
)
pure virtual

Implemented in m::DSVReader.

Field Documentation

◆ diag

Diagnostic& m::Reader::diag

Definition at line 18 of file Reader.hpp.

Referenced by m::DSVReader::operator()().

◆ table

const Table& m::Reader::table

the table to insert the data into

Definition at line 17 of file Reader.hpp.

Referenced by m::DSVReader::operator()().

◆ transaction

Scheduler::Transaction* m::Reader::transaction

Definition at line 19 of file Reader.hpp.

Referenced by m::DSVReader::operator()().


The documentation for this struct was generated from the following file: