saldacon.cpp Corretti metodi dei TTreeRectype
saldacon.h Aggiornati metodi virtuali derivati dai TRectype git-svn-id: svn://10.65.10.50/trunk@4480 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									fef25407a3
								
							
						
					
					
						commit
						076468ba0e
					
				@ -60,7 +60,7 @@ TRectype& TTree_rectype::new_row(int r)
 | 
			
		||||
{ 
 | 
			
		||||
  if (r <= 0) 
 | 
			
		||||
    r = last()+1;                     
 | 
			
		||||
  CHECKD(!exist(r), "Ue' pirla!, esiste gia' la riga ", r);
 | 
			
		||||
  CHECKD(!exist(r), "Ue' pirla! Esiste gia' la riga ", r);
 | 
			
		||||
  TRectype& row = rows_array().row(r, TRUE); 
 | 
			
		||||
  return row;
 | 
			
		||||
}
 | 
			
		||||
@ -75,9 +75,9 @@ int TTree_rectype::fill_array()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int TTree_rectype::read(TBaseisamfile& f, word op)
 | 
			
		||||
int TTree_rectype::read(TBaseisamfile& f, word op, word lockop, TDate& date)
 | 
			
		||||
{
 | 
			
		||||
  int err = TRectype::read(f, op);
 | 
			
		||||
  int err = TRectype::read(f, op, lockop, date);
 | 
			
		||||
  if (err == NOERR)
 | 
			
		||||
    fill_array();
 | 
			
		||||
  else 
 | 
			
		||||
@ -85,9 +85,9 @@ int TTree_rectype::read(TBaseisamfile& f, word op)
 | 
			
		||||
  return err; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int TTree_rectype::next(TBaseisamfile& f)
 | 
			
		||||
int TTree_rectype::next(TBaseisamfile& f, word lockop)
 | 
			
		||||
{
 | 
			
		||||
  int err = TRectype::next(f);
 | 
			
		||||
  int err = TRectype::next(f, lockop);
 | 
			
		||||
  if (err == NOERR)
 | 
			
		||||
    fill_array();
 | 
			
		||||
  else 
 | 
			
		||||
@ -95,25 +95,25 @@ int TTree_rectype::next(TBaseisamfile& f)
 | 
			
		||||
  return err; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int TTree_rectype::write(TBaseisamfile& f) const
 | 
			
		||||
int TTree_rectype::write(TBaseisamfile& f, TDate& date) const
 | 
			
		||||
{
 | 
			
		||||
  int err = TRectype::write(f);
 | 
			
		||||
  int err = TRectype::write(f, date);
 | 
			
		||||
  if (err == NOERR)
 | 
			
		||||
    err = _recarr.write();
 | 
			
		||||
  return err; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int TTree_rectype::rewrite(TBaseisamfile& f) const
 | 
			
		||||
int TTree_rectype::rewrite(TBaseisamfile& f, TDate& date) const
 | 
			
		||||
{
 | 
			
		||||
  int err = TRectype::rewrite(f);
 | 
			
		||||
  int err = TRectype::rewrite(f, date);
 | 
			
		||||
  if (err == NOERR)
 | 
			
		||||
    err = _recarr.rewrite();
 | 
			
		||||
  return err; 
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int TTree_rectype::remove(TBaseisamfile& f) const
 | 
			
		||||
int TTree_rectype::remove(TBaseisamfile& f, TDate& date) const
 | 
			
		||||
{
 | 
			
		||||
  int err = TRectype::remove(f);
 | 
			
		||||
  int err = TRectype::remove(f, date);
 | 
			
		||||
  if (err == NOERR)
 | 
			
		||||
    err = _recarr.remove();
 | 
			
		||||
  return err; 
 | 
			
		||||
 | 
			
		||||
@ -26,11 +26,11 @@ protected:
 | 
			
		||||
protected: // TRectype 
 | 
			
		||||
  virtual TObject* dup() const;
 | 
			
		||||
  
 | 
			
		||||
  virtual int read(TBaseisamfile& f, word op = _isequal);
 | 
			
		||||
  virtual int next(TBaseisamfile& f);
 | 
			
		||||
  virtual int write(TBaseisamfile& f) const;
 | 
			
		||||
  virtual int rewrite(TBaseisamfile& f) const;
 | 
			
		||||
  virtual int remove(TBaseisamfile& f) const;
 | 
			
		||||
  virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock, TDate& = (TDate&)botime);
 | 
			
		||||
  virtual int next(TBaseisamfile& f, word lockop = _nolock);
 | 
			
		||||
  virtual int write(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const;
 | 
			
		||||
  virtual int rewrite(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const;
 | 
			
		||||
  virtual int remove(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const;
 | 
			
		||||
  virtual void renum_key(const char* field, const char* val);
 | 
			
		||||
  
 | 
			
		||||
  const TRecord_array& rows_array() const { return _recarr; }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user