1 // 2 // This file is part of the SDTS++ toolkit, written by the U.S. 3 // Geological Survey. It is experimental software, written to support 4 // USGS research and cartographic data production. 5 // 6 // SDTS++ is public domain software. It may be freely copied, 7 // distributed, and modified. The USGS welcomes user feedback, but makes 8 // no committment to any level of support for this code. See the SDTS 9 // web site at http://mcmcweb.er.usgs.gov/sdts for more information, 10 // including points of contact. 11 // 12 13 #ifndef INCLUDED_SC_RECORD_H 14 #define INCLUDED_SC_RECORD_H 15 16 #include <list> 17 #include <iostream> 18 19 20 #ifndef INCLUDED_SC_FIELD_H 21 #include <sdts++/container/sc_Field.h> 22 #endif 23 24 25 /// Canonical field container 26 typedef std::list<sc_Field> sc_FieldCntr; 27 28 29 /// Corresponds to an SDTS logical record 30 /** 31 An SDTS record contains SDTS fields. 32 */ 33 class sc_Record : public sc_FieldCntr 34 { 35 public: 36 37 /// 38 typedef sc_FieldCntr::iterator iterator; 39 40 /// 41 typedef sc_FieldCntr::const_iterator const_iterator; 42 43 private: 44 45 friend std::ostream& operator<<( std::ostream&, sc_Record const& ); 46 47 }; // sc_Record 48 49 50 #endif // INCLUDED_SC_RECORD_H 51