Changeset 2698 in Sophya for trunk/SophyaLib/BaseTools/ppfswapper.h
- Timestamp:
- Apr 27, 2005, 1:41:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppfswapper.h
r2695 r2698 27 27 PPFDataSwapper(PInPersist & is) { ppfos = NULL; ppfis = &is;} 28 28 PPFDataSwapper(PInPersist & is, POutPersist & os) { ppfos = &os; ppfis = &is;} 29 30 inline PInPersist & InStream() { return *ppfis; } 31 inline PInPersist & OutStream() { return *ppfos; } 32 inline void SetInStream(PInPersist & is) { ppfis = &is; } 33 inline void SetOutStream(POutPersist & os) { ppfos = &os; } 34 35 // Operateur = , on recopie les pointeurs des streams 36 inline PPFDataSwapper& operator = (PPFDataSwapper const & a) 37 { ppfis = a.ppfis; ppfos = a.ppfos; return *this; } 38 29 39 virtual int_8 WriteToSwap(const T * d, size_t sz, int_8 idx, int_8 oswp=0, bool osw=false) 30 40 {
Note:
See TracChangeset
for help on using the changeset viewer.