Initial
This commit is contained in:
62
aladin/divelog.hpp
Normal file
62
aladin/divelog.hpp
Normal file
@@ -0,0 +1,62 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user