19 bool fileExists(
const std::string& name)
21 std::ifstream f(name.c_str());
36 const std::string& file_name,
39 std::cout <<
"Creating file: " << file_name << std::endl;
45 const std::string& file_name,
46 const std::string& type,
49 std::cout <<
"Opening file: " << file_name << std::endl;
virtual bool create(const std::string &file_name, const MPI_Comm comm=MPI_COMM_NULL)
Creates a new database file with the supplied name.
Database()
Default constructor.
virtual ~Database()
Destructor.
virtual bool open(const std::string &file_name, const std::string &type, const MPI_Comm comm=MPI_COMM_NULL)
Opens an existing database file with the supplied name.