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

37 lines
840 B
C++

#ifndef _ALADIN_PROFILES_HPP_
#define _ALADIN_PROFILES_HPP_
#ifndef _COMMON_BLOCK_HPP_
#include <common/block.hpp>
#endif
#ifndef _COMMON_ARRAY_HPP_
#include <common/array.hpp>
#endif
#ifndef _ALADIN_STATUS_HPP_
#include <aladin/status.hpp>
#endif
#ifndef _ALADIN_INFORMATION_HPP_
#include <aladin/information.hpp>
#endif
#ifndef _ALADIN_DIVEPROFILE_HPP_
#include <aladin/diveprofile.hpp>
#endif
#ifndef _ALADIN_RAWDATA_HPP_
#include <aladin/rawdata.hpp>
#endif
class File;
typedef Block<DiveProfile> DiveProfiles;
class Profiles : public DiveProfiles
{
public:
enum{Marker=0xFF};
bool readFrom(RawData &array,Information &info,CurrentStatus &status);
bool readFrom(File &inFile);
bool writeTo(File &outFile);
bool haveProfile(DiveProfile &diveProfile);
private:
int getNextMarkerPos(Array<BYTE> &array,int currIndex);
};
#endif