091cb9a1a7
Files correlati : ca1.exe ca1100a.msk ca1100a.rep Ricompilazione Demo : [ ] Commento : Aggiunto bilancio per cento di costo git-svn-id: svn://10.65.10.50/branches/R_10_00@22519 c028cbd2-c16b-5b4b-a496-9718f37d4682
55 lines
854 B
C++
Executable File
55 lines
854 B
C++
Executable File
#include <applicat.h>
|
|
#include <automask.h>
|
|
#include <reprint.h>
|
|
|
|
#include "ca1.h"
|
|
#include "calib02.h"
|
|
|
|
class TEthero_rep : public TAnal_report
|
|
{
|
|
protected:
|
|
virtual bool use_mask() { return true; }
|
|
};
|
|
|
|
class TPrint_ca : public TSkeleton_application
|
|
{
|
|
protected:
|
|
void print_rep(const TFilename& n) const;
|
|
|
|
public:
|
|
virtual void main_loop();
|
|
};
|
|
|
|
void TPrint_ca::print_rep(const TFilename& n) const
|
|
{
|
|
TEthero_rep rep;
|
|
if (rep.load(n))
|
|
rep.print_or_preview();
|
|
}
|
|
|
|
void TPrint_ca::main_loop()
|
|
{
|
|
TFilename path;
|
|
|
|
if (argc() > 2)
|
|
{
|
|
path = argv(2);
|
|
path.ext("rep");
|
|
if (path.custom_path())
|
|
{
|
|
print_rep(path);
|
|
return;
|
|
}
|
|
}
|
|
while (select_custom_file(path, "rep", "ca1100"))
|
|
print_rep(path);
|
|
}
|
|
|
|
int ca1100(int argc, char* argv[])
|
|
{
|
|
TPrint_ca a;
|
|
a.run(argc, argv, TR("Stampa analitica"));
|
|
return 0;
|
|
}
|
|
|