Class FileDB

Inheritance Relationships

Base Type

Class Documentation

class FileDB : public ams::db::BaseDB

A pure virtual interface for data bases storing data using some file format (filesystem DB).

Public Functions

inline FileDB(std::string path, std::string fn, const std::string suffix, uint64_t rId)

Takes an input and an output vector each holding 1-D vectors data, and store. them in persistent data storage.

Parameters:
  • path[in] Path to an existing directory where to store our data

  • suffix[in] The suffix of the file to write to

  • rId[in] a unique Id for each process taking part in a distributed execution (rank-id)

inline virtual std::string getFilename() const

Protected Functions

inline void checkError(std::error_code &ec)

check error code, if it exists print message and exit application

Parameters:

ec[in] error code

Protected Attributes

std::string fn

Path to file to write data to.

std::string fp

absolute path to directory storing the data