#include "ve2300.h" #define LF_CONDV 52 #define LF_RCONDV 53 #ifndef __CHECKS_H #include #endif #ifndef __RELAPP_H #include #endif #ifndef __LFFILES_H #include #endif class Tofferte_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: Tofferte_application( ) { }; virtual ~Tofferte_application() { } }; bool Tofferte_application::user_create() { _msk = new TMask( "VE2300" ); _rel = new TRelation( LF_CONDV ); // _rel.add( "%PIP" ) return TRUE; } bool Tofferte_application::user_destroy() { delete _msk; delete _rel; return TRUE; } int ve2300(int argc, char* argv[]) { Tofferte_application a; a.run(argc, argv, "Gestione offerte/campagne " ); return 0; }