Changeset 2805 in Sophya for trunk/SophyaLib/BaseTools/ppfnametag.h
- Timestamp:
- Jun 9, 2005, 6:20:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppfnametag.h
r2484 r2805 7 7 8 8 #include "ppersist.h" 9 9 /*! 10 \class SOPHYA::PPFNameTag 11 \ingroup BaseTools 12 A simple class which can be used in conjuction with << and >> operators 13 to write nametags in POutPersist streams or position an input PInPersist 14 stream at a given nametag. 15 Nametags are strings which can be used to identify objects for further 16 retrieval in PPF streams. 17 Pushing a PPFNameTag(tname) to an output stream \b os corresponds to 18 so.WriteNameTag(tname). Extracting a PPFNameTag(tname) from an input stream 19 \b is corresponds to is.GotoNameTag(tname). 20 21 \code 22 { 23 // Writing a name tag and an object to a stream 24 NDataBlock<int_4> idb(16); 25 idb = 16; 26 POutPersist so("myfile.ppf"); 27 so << PPFNameTag("MyIDB") << idb ; 28 } 29 //... 30 { 31 // Positioning and Reading from a PPF stream 32 PInPersist si("myfile.ppf"); 33 NDataBlock<int_4> idb; 34 si >> PPFNameTag("MyIDB") >> idb; 35 } 36 \endcode 37 */ 10 38 //---------------------------------------------------------------------- 11 39 namespace SOPHYA {
Note:
See TracChangeset
for help on using the changeset viewer.