#ifndef __CLIFOR_H #define __CLIFOR_H #ifndef __MULTIREC_H #include #endif //#ifndef __MASK_H //#include //#endif //#ifndef __LFFILES_H //#include //#endif #ifndef __CLIFO_H #include #endif #ifndef __CFVEN_H #include #endif #ifndef __INDSP_H #include #endif #ifndef __OCCAS_H #include #endif class TOccasionale : public TRectype { TRecfield * _cod; public: const char * codice() const { return (const char *) *_cod;} TRectype & operator = (const TRectype& r); TOccasionale(); TOccasionale(const TRectype& r); virtual ~TOccasionale(); }; class TCli_for : public TMultiple_rectype { TRecfield * _tipo; TRecfield * _codice; TRecfield * _ven_tipo; TRecfield * _ven_codice; TRectype _ven_rec; protected: virtual int write_rewrite(TBaseisamfile& f, bool re = FALSE) const; public: bool occasionale() const { return get_bool(CLI_OCCAS); } TRectype & vendite() const; // TMask& occas_mask( ){ return _occas_mask; } // static bool occas_code_handler(TMask_field& f, KEY key); // int write_occas( ); // void edita_occasionale( ); char tipo() const { return *(const char *) (*_tipo); } long codice() const { return (long) *_codice; } bool ok() const { return !empty();} virtual int read(TRectype & rec, word op = _isequal, word lockop = _nolock); int read(char tipo, long codice, word op = _isequal, word lockop = _nolock); virtual int remove(TBaseisamfile& f) const; TCli_for(char tipo = ' ', long codice = 0L); TCli_for(const TRectype & rec); TCli_for(const TCli_for & c); virtual ~TCli_for(); }; #endif