Files
Work/aladin/divelog.hpp
2024-08-07 09:12:07 -04:00

63 lines
1.3 KiB
C++

#ifndef _ALADIN_DIVELOG_HPP_
#define _ALADIN_DIVELOG_HPP_
#ifndef _COMMON_WINDOWS_HPP_
#include <common/windows.hpp>
#endif
#ifndef _COMMON_ARRAY_HPP_
#include <common/array.hpp>
#endif
#ifndef _COMMON_STDIO_HPP_
#include <common/stdio.hpp>
#endif
#ifndef _COMMON_MATH_HPP_
#include <common/math.hpp>
#endif
#ifndef _COMMON_SYSTEMTIME_HPP_
#include <common/systime.hpp>
#endif
#ifndef _ALADIN_STATUS_HPP_
#include <aladin/status.hpp>
#endif
#ifndef _ALADIN_TIME_HPP_
#include <aladin/time.hpp>
#endif
#ifndef _ALADIN_RAWDATA_HPP_
#include <aladin/rawdata.hpp>
#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