Added Model namespace

This commit is contained in:
kdeng00
2019-09-01 13:54:16 -04:00
parent 1255aa0ff7
commit d44a5bb1bc
19 changed files with 131 additions and 205 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ public:
base_repository(const std::string&);
protected:
MYSQL* setup_mysql_connection();
MYSQL* setup_mysql_connection(database_connection);
MYSQL* setup_mysql_connection(Model::database_connection);
MYSQL_RES* perform_mysql_query(MYSQL*, const std::string&);
database_connection details;
Model::database_connection details;
private:
void intitalizeDetails();
+4 -4
View File
@@ -12,12 +12,12 @@ class coverArtRepository : public base_repository
public:
coverArtRepository(const std::string&);
Cover retrieveRecord(Cover&, coverFilter);
Model::Cover retrieveRecord(Model::Cover&, coverFilter);
void deleteRecord(const Cover&);
void saveRecord(const Cover&);
void deleteRecord(const Model::Cover&);
void saveRecord(const Model::Cover&);
private:
Cover parseRecord(MYSQL_RES*);
Model::Cover parseRecord(MYSQL_RES*);
};
#endif
+6 -6
View File
@@ -15,16 +15,16 @@ class songRepository : public base_repository
public:
songRepository(const std::string&);
std::vector<Song> retrieveRecords();
std::vector<Model::Song> retrieveRecords();
Song retrieveRecord(Song&, songFilter);
Model::Song retrieveRecord(Model::Song&, songFilter);
void deleteRecord(const Song&);
void saveRecord(const Song&);
void deleteRecord(const Model::Song&);
void saveRecord(const Model::Song&);
private:
std::vector<Song> parseRecords(MYSQL_RES*);
std::vector<Model::Song> parseRecords(MYSQL_RES*);
Song parseRecord(MYSQL_RES*);
Model::Song parseRecord(MYSQL_RES*);
};
#endif