Changeset 2863 in Sophya for trunk/SophyaLib/BaseTools/ppfswapper.h
- Timestamp:
- Jan 2, 2006, 2:38:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppfswapper.h
r2805 r2863 43 43 virtual int_8 WriteToSwap(const T * d, size_t sz, int_8 idx, int_8 oswp=0, bool osw=false) 44 44 { 45 if (ppfos == NULL) throw NotAvailableOperation("PPFDataSwapper<T>::WriteToSwap() - No POutPersist stream !"); 45 if (ppfos == NULL) 46 throw NotAvailableOperation("PPFDataSwapper<T>::WriteToSwap() - No POutPersist stream !"); 46 47 int_8 tag = ppfos->WritePositionTag(); 47 48 PPF_TPointer_IO<T>::Write(*ppfos, d, sz); … … 50 51 virtual void ReadFromSwap(int_8 idx, int_8 swp, T* d, size_t sz) 51 52 { 52 if (ppfis == NULL) throw NotAvailableOperation("PPFDataSwapper<T>::ReadFromSwap() - No PInPersist stream !"); 53 if (ppfis == NULL) 54 throw NotAvailableOperation("PPFDataSwapper<T>::ReadFromSwap() - No PInPersist stream !"); 53 55 bool ok = ppfis->GotoPositionTag(swp); 54 56 PPF_TPointer_IO<T>::Read(*ppfis, d, sz); 55 57 return; 58 } 59 virtual DataSwapperInterface<T>* Clone() 60 { 61 PPFDataSwapper<T> * rsw = new PPFDataSwapper<T> ; 62 (*rsw) = *this; 63 return rsw; 56 64 } 57 65 protected:
Note:
See TracChangeset
for help on using the changeset viewer.