checks-parser/goods/goods.h

28 lines
660 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef GOODS_H
#define GOODS_H
#include <string>
class Goods
{
std::string name;
double quantity; // by weight or by the piece
std::string net_weight; // will contain values like "5мл" or "10г"
double price_per_unit;
public:
Goods(std::string name, double quantity, std::string net_weight, double price_per_unit);
double calculate_total_price();
std::string get_name();
double get_quantity();
std::string get_net_weight();
double get_price_per_unit();
void set_name(std::string);
void set_quantity(double);
void set_net_weight(std::string);
void set_price_per_unit(double);
};
#endif // GOODS_H