libROM  v1.0
Data-driven physical simulation library
Database.cpp
1 
11 // Description: The abstract database class defines interface for databases.
12 
13 #include "Database.h"
14 #include <iostream>
15 #include <fstream>
16 
17 namespace CAROM {
18 
19 
21 {
22 }
23 
25 {
26 }
27 
28 bool
30  const std::string& file_name,
31  const MPI_Comm comm)
32 {
33  std::cout << "Creating file: " << file_name << std::endl;
34  return true;
35 }
36 
37 bool
39  const std::string& file_name,
40  const std::string& type,
41  const MPI_Comm comm)
42 {
43  std::cout << "Opening file: " << file_name << std::endl;
44  return true;
45 }
46 
47 }
virtual bool create(const std::string &file_name, const MPI_Comm comm=MPI_COMM_NULL)
Creates a new database file with the supplied name.
Definition: Database.cpp:29
Database()
Default constructor.
Definition: Database.cpp:20
virtual ~Database()
Destructor.
Definition: Database.cpp:24
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.
Definition: Database.cpp:38