#ifndef _ALADIN_DIVELOG_HPP_ #define _ALADIN_DIVELOG_HPP_ #ifndef _COMMON_WINDOWS_HPP_ #include #endif #ifndef _COMMON_ARRAY_HPP_ #include #endif #ifndef _COMMON_STDIO_HPP_ #include #endif #ifndef _COMMON_MATH_HPP_ #include #endif #ifndef _COMMON_SYSTEMTIME_HPP_ #include #endif #ifndef _ALADIN_STATUS_HPP_ #include #endif #ifndef _ALADIN_TIME_HPP_ #include #endif #ifndef _ALADIN_RAWDATA_HPP_ #include #endif class File; class DiveLog { public: DiveLog(); virtual ~DiveLog(); int getAltitude(void)const; int getMaxDepth(void)const; SystemTime getEntryTime(void)const; int getWaterTemperature(void)const; int getBottomTime(void)const; Time getSurfaceTime(void)const; bool operator<(const DiveLog &diveLog)const; bool operator>(const DiveLog &diveLog)const; bool operator==(const DiveLog &diveLog)const; String toString(void)const; bool writeTo(File &outFile); bool readFrom(File &inFile); bool readFrom(RawData &array,int &index); private: BYTE mExtraInfo; BYTE mBottomTime; BYTE mMaxDepthHi; BYTE mMaxDepthLo; BYTE mSurfaceTimeHi; BYTE mSurfaceTimeLo; BYTE mTotalAirConsumption; BYTE mEntryTime1; BYTE mEntryTime2; BYTE mEntryTime3; BYTE mEntryTime4; BYTE mWaterTemperature; }; #endif