-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspesa.h
33 lines (26 loc) · 883 Bytes
/
spesa.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef SPESA_H
#define SPESA_H
#include "faccenda.h"
#include "pagamento.h"
#include <vector>
using std::string;
class Spesa: public Pagamento, public Faccenda
{
private:
static unsigned short int _pesoSpesa;
unsigned short int _numeroArticoli;
public:
Spesa(const string& nome="spesa",float importo=0,int tempoStimato=60,
unsigned short int numeroArticoli=0,Inquilino * incaricato=nullptr,bool svolto=false);
virtual ~Spesa() {};
virtual Spesa* clone() const;
// get
virtual string getLabel() const;
virtual string generaNota() const;
virtual bool posponi (const Data &) const;
virtual unsigned short int calcolaPunteggio() const;
// input/output
static void importXml(QXmlStreamReader & xmlInput, vector<string> & parametri);
void exportXml(QXmlStreamWriter & xmlOutput,string data) const;
};
#endif // SPESA_H