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)  |   if (r <= 0)  | ||||||
|     r = last()+1;                      |     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);  |   TRectype& row = rows_array().row(r, TRUE);  | ||||||
|   return row; |   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) |   if (err == NOERR) | ||||||
|     fill_array(); |     fill_array(); | ||||||
|   else  |   else  | ||||||
| @ -85,9 +85,9 @@ int TTree_rectype::read(TBaseisamfile& f, word op) | |||||||
|   return err;  |   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) |   if (err == NOERR) | ||||||
|     fill_array(); |     fill_array(); | ||||||
|   else  |   else  | ||||||
| @ -95,25 +95,25 @@ int TTree_rectype::next(TBaseisamfile& f) | |||||||
|   return err;  |   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) |   if (err == NOERR) | ||||||
|     err = _recarr.write(); |     err = _recarr.write(); | ||||||
|   return err;  |   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) |   if (err == NOERR) | ||||||
|     err = _recarr.rewrite(); |     err = _recarr.rewrite(); | ||||||
|   return err;  |   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) |   if (err == NOERR) | ||||||
|     err = _recarr.remove(); |     err = _recarr.remove(); | ||||||
|   return err;  |   return err;  | ||||||
|  | |||||||
| @ -26,11 +26,11 @@ protected: | |||||||
| protected: // TRectype 
 | protected: // TRectype 
 | ||||||
|   virtual TObject* dup() const; |   virtual TObject* dup() const; | ||||||
|    |    | ||||||
|   virtual int read(TBaseisamfile& f, word op = _isequal); |   virtual int read(TBaseisamfile& f, word op = _isequal, word lockop = _nolock, TDate& = (TDate&)botime); | ||||||
|   virtual int next(TBaseisamfile& f); |   virtual int next(TBaseisamfile& f, word lockop = _nolock); | ||||||
|   virtual int write(TBaseisamfile& f) const; |   virtual int write(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; | ||||||
|   virtual int rewrite(TBaseisamfile& f) const; |   virtual int rewrite(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; | ||||||
|   virtual int remove(TBaseisamfile& f) const; |   virtual int remove(TBaseisamfile& f, TDate& atdate = (TDate&)botime) const; | ||||||
|   virtual void renum_key(const char* field, const char* val); |   virtual void renum_key(const char* field, const char* val); | ||||||
|    |    | ||||||
|   const TRecord_array& rows_array() const { return _recarr; } |   const TRecord_array& rows_array() const { return _recarr; } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user