Created
June 14, 2015 12:53
-
-
Save calindotgabriel/27e12088ae67a11dbb13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef PRODUCTREPO_H | |
#define PRODUCTREPO_H | |
#include <string> | |
#include <vector> | |
#include <mutex> | |
#include <thread> | |
#include "product.h" | |
class ProductRepo | |
{ | |
private: | |
std::string fIdName; | |
std::string fNameQty; | |
std::vector<Product> products; | |
void _load(); | |
void _save(); | |
public: | |
ProductRepo(std::string fIdName, std::string fNameQty); | |
ProductRepo(); | |
std::string& getFileNameIdName(); | |
std::string& getFileNameIdQty(); | |
std::vector<Product> getProducts(); | |
Product& findByID(int id); | |
}; | |
#endif // PRODUCTREPO_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment