GENIE
io.h
Go to the documentation of this file.
1 #ifndef GENIE_INTERFACE_IO_H_
2 #define GENIE_INTERFACE_IO_H_
3 
4 #include <vector>
5 #include <string>
6 #include <memory>
9 #include "types.h"
10 
11 namespace genie {
12 
16 TableData LoadTableDataFromCsv(const std::string& filename);
20 std::shared_ptr<genie::table::inv_table> LoadTableFromBinary(const std::string& filename);
24 void SaveTableToBinary(const std::string& filename, const std::shared_ptr<const genie::table::inv_table> &table);
28 QueryData LoadQueryDataFromCsv(const std::string& filename, const std::shared_ptr<const ExecutionPolicy>& policy);
29 
30 } // end of namespace genie
31 
32 #endif
QueryData LoadQueryDataFromCsv(const std::string &filename, const std::shared_ptr< const ExecutionPolicy > &policy)
Reads query from a CSV file and returns in QueryData format.
This is the top-level namespace of the project.
std::vector< std::vector< int > > QueryData
Raw query data format used for building the queries.
Definition: types.h:16
std::shared_ptr< genie::table::inv_table > LoadTableFromBinary(const std::string &filename)
Reads data from a binary file and returns pre-built table.
void SaveTableToBinary(const std::string &filename, const std::shared_ptr< const genie::table::inv_table > &table)
Save inverted table to a binary file.
std::vector< std::vector< int > > TableData
Raw table data format used for building the table.
Definition: types.h:12
TableData LoadTableDataFromCsv(const std::string &filename)
Reads data from a CSV file and returns in TableData format.