// $Id: RwPointCoordFile.hpp,v 1.2 2010/02/01 09:45:17 philw Exp $ // RiverWare Coordinate Pair File // See notes in .cpp file. // //--- #ifndef RwPointCoordFileINCLUDED #define RwPointCoordFileINCLUDED #include #include #ifndef cwReturnStatusINCLUDED #include "cwReturnStatus.hpp" // for okstat #endif class RwPointCoordFile { // ***************************** // *** Object Record Class *** // ***************************** public: struct Rec { QString _objName; // Object Name String QString _objType; // Object Type String double _xCoord; // X Coordinate double _yCoord; // Y Coordinate // constructor Rec (const QString& name, const QString& typ, double x, double y) : _objName (name), _objType (typ), _xCoord (x), _yCoord (y) {} }; // *************************************** // *** RwPointCoordFile Data Members *** // *************************************** private: // Client Data QList _objRecs; // ********************************** // *** RwPointCoordFile Methods *** // ********************************** public: RwPointCoordFile(); virtual ~RwPointCoordFile(); // Object Coordinate Data void clearObjRecs(); void addObjRec (const Rec&); const QList& objRecListRef() const { return _objRecs; } // ShapeFile I/O okstat writeShapeFile (const QString& filePath); okstat readShapeFile (const QString& filePath); }; #endif // RwPointCoordFileINCLUDED //--- (end RwPointCoordFile.hpp) ---