55 lines
1.2 KiB
C++
55 lines
1.2 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
|
|
|
|
class DiveLog
|
|
{
|
|
public:
|
|
DiveLog();
|
|
virtual ~DiveLog();
|
|
bool readFrom(Array<BYTE> &array,int &index);
|
|
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;
|
|
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
|