1999-02-22 15:19:07 +00:00
|
|
|
#ifndef __INLIB01_H
|
|
|
|
#define __INLIB01_H
|
|
|
|
|
|
|
|
#ifndef __AUTOMASK_H
|
|
|
|
#include <automask.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class TIntra_mask : public TAutomask
|
|
|
|
{
|
|
|
|
char _freq_ces, _freq_acq;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void on_firm_change();
|
|
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
|
|
|
|
|
|
|
virtual short type_field() const;
|
|
|
|
virtual short period_field() const;
|
2001-09-19 14:52:11 +00:00
|
|
|
virtual int anno() const pure;
|
1999-02-22 15:19:07 +00:00
|
|
|
|
|
|
|
public:
|
2001-09-19 14:52:11 +00:00
|
|
|
int date2periodo(const TDate & d);
|
1999-02-22 15:19:07 +00:00
|
|
|
char tipo() const;
|
2002-05-31 10:35:40 +00:00
|
|
|
char frequenza(int anno = 0, char tipo = '\0') const;
|
1999-02-22 15:19:07 +00:00
|
|
|
int periodo() const;
|
1999-04-22 14:23:18 +00:00
|
|
|
const char* periodo_str() const;
|
1999-02-22 15:19:07 +00:00
|
|
|
|
|
|
|
TIntra_mask(const char* name);
|
|
|
|
virtual ~TIntra_mask() { }
|
|
|
|
};
|
|
|
|
|
1999-04-22 14:23:18 +00:00
|
|
|
void genera_riepiloghi(char tipo = ' ', int anno = 0, int periodo = 0);
|
2001-09-19 14:52:11 +00:00
|
|
|
bool is_riepilogo(char tipo, int anno, int periodo);
|
|
|
|
|
1999-02-22 15:19:07 +00:00
|
|
|
#endif
|