Class FileDB¶
Defined in File basedb.hpp
Inheritance Relationships¶
Base Type¶
public ams::db::BaseDB(Class BaseDB)
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
-
inline FileDB(std::string path, std::string fn, const std::string suffix, uint64_t rId)¶