1995-12-12 13:37:30 +00:00
|
|
|
#ifndef __SC2102_H
|
|
|
|
#define __SC2102_H
|
|
|
|
|
1997-06-20 08:53:29 +00:00
|
|
|
#ifndef __ASSOC_H
|
|
|
|
#include <assoc.h>
|
|
|
|
#endif
|
1995-12-12 13:37:30 +00:00
|
|
|
|
1997-06-20 08:53:29 +00:00
|
|
|
#ifndef __ISAM_H
|
|
|
|
#include <isam.h>
|
|
|
|
#endif
|
1995-12-12 13:37:30 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// Totalizzatore
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TTotal : public TObject
|
|
|
|
{
|
|
|
|
TImporto _importo;
|
1996-01-18 18:03:29 +00:00
|
|
|
TImporto _unassigned;
|
1995-12-12 13:37:30 +00:00
|
|
|
real _scaduto;
|
|
|
|
real _esposto;
|
|
|
|
real _importo_lire;
|
|
|
|
|
|
|
|
public:
|
|
|
|
const TImporto& importo() const { return _importo; }
|
1996-01-18 18:03:29 +00:00
|
|
|
const TImporto& unassigned() const { return _unassigned; }
|
1995-12-12 13:37:30 +00:00
|
|
|
const real& importo_lire() const { return _importo_lire; }
|
|
|
|
const real& scaduto() const { return _scaduto; }
|
|
|
|
const real& esposto() const { return _esposto; }
|
|
|
|
TImporto& importo() { return _importo; }
|
1996-01-18 18:03:29 +00:00
|
|
|
TImporto& unassigned() { return _unassigned; }
|
1995-12-12 13:37:30 +00:00
|
|
|
real& importo_lire() { return _importo_lire; }
|
|
|
|
real& scaduto() { return _scaduto; }
|
|
|
|
real& esposto() { return _esposto; }
|
|
|
|
|
|
|
|
TTotal(const TImporto& imp, const real& scaduto,
|
|
|
|
const real& esposto, const real& implire);
|
1996-01-18 18:03:29 +00:00
|
|
|
TTotal(const TImporto& uns);
|
1995-12-12 13:37:30 +00:00
|
|
|
virtual ~TTotal() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class TTotalizer : public TAssoc_array
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void add(const TImporto& imp, const real& scaduto,
|
|
|
|
const real& esposto, const real& implire, const TString& val);
|
1996-01-18 18:03:29 +00:00
|
|
|
void add(const TImporto& uns, const TString& val);
|
1995-12-12 13:37:30 +00:00
|
|
|
TTotalizer() { }
|
|
|
|
virtual ~TTotalizer() { }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TFilearray
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TFile_array
|
|
|
|
{
|
|
|
|
TArray _file;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void open(int num, ...);
|
|
|
|
void close();
|
|
|
|
TLocalisamfile& file(int num) const { return (TLocalisamfile&)_file[num]; }
|
|
|
|
TLocalisamfile& operator[](int num) const { return file(num); }
|
|
|
|
|
|
|
|
TFile_array() {}
|
|
|
|
virtual ~TFile_array() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __SC2102_H
|