30 lines
620 B
C++
30 lines
620 B
C++
#ifndef _ALADIN_LOGBOOK_HPP_
|
|
#define _ALADIN_LOGBOOK_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _ALADIN_DIVELOG_HPP_
|
|
#include <aladin/divelog.hpp>
|
|
#endif
|
|
#ifndef _ALADIN_RAWDATA_HPP_
|
|
#include <aladin/rawdata.hpp>
|
|
#endif
|
|
|
|
class File;
|
|
|
|
class LogBook : public Block<DiveLog>
|
|
{
|
|
public:
|
|
enum{StartAddress=0x600,MaxLogs=37};
|
|
LogBook();
|
|
virtual ~LogBook();
|
|
bool readFrom(RawData &array,CurrentStatus &status);
|
|
bool readFrom(File &inFile);
|
|
bool writeTo(File &outFile);
|
|
bool haveDive(DiveLog &diveLog);
|
|
private:
|
|
};
|
|
#endif |