campo-sirio/ve/ve2100.cpp

61 lines
1023 B
C++
Raw Normal View History

#include "ve2100.h"
#define LF_CONDV 52
#define LF_RCONDV 53
#ifndef __CHECKS_H
#include <checks.h>
#endif
#ifndef __RELAPP_H
#include <relapp.h>
#endif
#ifndef __LFFILES_H
#include <lffiles.h>
#endif
class Tlistino_application : public TRelation_application
{
TMask* _msk;
TRelation* _rel;
virtual bool user_create();
virtual bool user_destroy();
virtual TMask* get_mask(int mode) { return _msk;}
virtual bool changing_mask(int mode) { return FALSE;}
virtual TRelation* get_relation() const { return _rel;}
public:
Tlistino_application( ) { };
virtual ~Tlistino_application() { }
};
bool Tlistino_application::user_create()
{
_msk = new TMask( "VE2100" );
_rel = new TRelation( LF_CONDV );
// _rel.add( "%PIP" )
return TRUE;
}
bool Tlistino_application::user_destroy()
{
delete _msk;
delete _rel;
return TRUE;
}
int ve2100(int argc, char* argv[])
{
Tlistino_application a;
a.run(argc, argv, "Gestione listini " );
return 0;
}