2004-11-29 09:52:49 +00:00
|
|
|
#ifndef __CALIB01_H
|
|
|
|
#define __CALIB01_H
|
|
|
|
|
|
|
|
#ifndef __AUTOMASK_H
|
|
|
|
#include <automask.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __RELAPP_H
|
|
|
|
#include <relapp.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TAnal_msk
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TAnal_msk : public TAutomask
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual int create_key_fields() pure;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
2004-12-01 14:57:03 +00:00
|
|
|
|
|
|
|
virtual short create_tree_field();
|
2004-12-01 10:56:41 +00:00
|
|
|
int compute_offset() const;
|
2004-11-29 09:52:49 +00:00
|
|
|
TAnal_msk(const char* name);
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual int get_logicnum() const pure;
|
|
|
|
};
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TSimple_anal_msk
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TSimple_anal_msk : public TAnal_msk
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual const char* get_key_var() const pure;
|
|
|
|
virtual const char* get_des_var() const pure;
|
|
|
|
virtual short get_key_id(int n) const pure;
|
|
|
|
virtual short get_des_id(int n) const pure;
|
|
|
|
|
|
|
|
void get_key_fields(TString& key1, TString& key2) const;
|
2004-12-01 10:56:41 +00:00
|
|
|
int get_key_len(int level, TConfig& cfg) const;
|
|
|
|
|
2004-11-29 09:52:49 +00:00
|
|
|
void create_key_browse(TEdit_field& kfld, int level, TConfig& cfg);
|
2004-12-01 10:56:41 +00:00
|
|
|
void create_des_browse(TEdit_field& kfld, int level, TConfig& cfg);
|
2004-11-29 09:52:49 +00:00
|
|
|
virtual int create_key_fields();
|
2004-12-01 14:57:03 +00:00
|
|
|
virtual short create_tree_field();
|
2004-11-29 09:52:49 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
TSimple_anal_msk(const char* name);
|
|
|
|
};
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TAnal_app
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class TAnal_app : public TRelation_application
|
|
|
|
{
|
|
|
|
TRelation* _rel;
|
|
|
|
TAnal_msk* _msk;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool changing_mask(int) { return false; }
|
|
|
|
virtual TMask* get_mask(int) { return _msk; }
|
|
|
|
virtual TRelation* get_relation() const { return _rel; }
|
|
|
|
virtual bool user_create();
|
|
|
|
virtual bool user_destroy();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual TAnal_msk* create_mask() const pure;
|
|
|
|
virtual TRelation* create_relation() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|