29 lines
399 B
C++
29 lines
399 B
C++
/*
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_DATABASE_H
|
|
#define OCARINA_DATABASE_H
|
|
|
|
#include <file.h>
|
|
|
|
#include <vector>
|
|
|
|
template <class T>
|
|
class Database {
|
|
private:
|
|
std::vector<T> db;
|
|
unsigned int _size;
|
|
File file;
|
|
|
|
public:
|
|
Database(std::string);
|
|
~Database();
|
|
|
|
unsigned int insert(T);
|
|
const unsigned int &size();
|
|
};
|
|
|
|
#include "database.hpp"
|
|
|
|
#endif /* OCARINA_DATABASE_H */
|