code formatting
This commit is contained in:
parent
d677dfd628
commit
acc3095e60
23 changed files with 215 additions and 215 deletions
|
@ -20,26 +20,26 @@ using BasketVec = std::vector<std::unique_ptr<Article>>;
|
|||
|
||||
class Marketplace
|
||||
{
|
||||
public:
|
||||
public:
|
||||
Marketplace();
|
||||
|
||||
void storeToDb(bool onlyDelete = false);
|
||||
Database::InitResult loadFromDb();
|
||||
|
||||
SellersVec& getSellers();
|
||||
SalesVec& getSales();
|
||||
SellersVec &getSellers();
|
||||
SalesVec &getSales();
|
||||
int getNextSellerNo();
|
||||
int getNextArticleNo();
|
||||
int getNumSellersDelete();
|
||||
int getNumArticlesSold();
|
||||
int getNumArticlesOffered();
|
||||
BasketVec& getBasket();
|
||||
BasketVec &getBasket();
|
||||
int getBasketSumInCent();
|
||||
std::string getBasketSumAsString();
|
||||
|
||||
void sortSellers();
|
||||
Seller* findSellerWithSellerNo(int sellerNo);
|
||||
Seller* findSellerWithUuid(const std::string& uuid);
|
||||
Seller *findSellerWithSellerNo(int sellerNo);
|
||||
Seller *findSellerWithUuid(const std::string &uuid);
|
||||
void addArticleToBasket(std::unique_ptr<Article> article);
|
||||
size_t basketSize();
|
||||
void finishCurrentSale(std::unique_ptr<Sale> sale);
|
||||
|
@ -54,12 +54,12 @@ class Marketplace
|
|||
|
||||
void clear();
|
||||
|
||||
void exportReportToCSV(const std::filesystem::path& filePath, int feeInPercent,
|
||||
void exportReportToCSV(const std::filesystem::path &filePath, int feeInPercent,
|
||||
int maxFeeInEuro);
|
||||
|
||||
friend class ExcelReader;
|
||||
|
||||
private:
|
||||
private:
|
||||
SellersVec sellers_;
|
||||
SalesVec sales_;
|
||||
BasketVec basket_;
|
||||
|
@ -68,6 +68,6 @@ class Marketplace
|
|||
double marketFee(int sumInCent, int percent, int maxFeeInCent);
|
||||
std::string marketFeeAsString(int sumInCent, int percent, int maxFeeInCent);
|
||||
std::string paymentAsString(int sumInCent, int percent, int maxFeeInCent);
|
||||
std::string escapeCsvValue(const std::string& value, const char delimiter);
|
||||
std::string escapeCsvValue(const std::string &value, const char delimiter);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue