Added Controller namespace

This commit is contained in:
kdeng00
2019-09-01 16:16:06 -04:00
parent f75ebe14a7
commit 1ec3511bc5
17 changed files with 305 additions and 202 deletions
+15 -11
View File
@@ -10,21 +10,25 @@
#include "models/models.h"
#include "types/songFilter.h"
class songRepository : public base_repository
namespace Database
{
public:
songRepository(const std::string&);
class songRepository : public base_repository
{
public:
songRepository(const std::string&);
songRepository(const Model::BinaryPath&);
std::vector<Model::Song> retrieveRecords();
std::vector<Model::Song> retrieveRecords();
Model::Song retrieveRecord(Model::Song&, songFilter);
Model::Song retrieveRecord(Model::Song&, songFilter);
void deleteRecord(const Model::Song&);
void saveRecord(const Model::Song&);
private:
std::vector<Model::Song> parseRecords(MYSQL_RES*);
void deleteRecord(const Model::Song&);
void saveRecord(const Model::Song&);
private:
std::vector<Model::Song> parseRecords(MYSQL_RES*);
Model::Song parseRecord(MYSQL_RES*);
};
Model::Song parseRecord(MYSQL_RES*);
};
}
#endif