#ifndef _ALADIN_ALADIN_HPP_ #define _ALADIN_ALADIN_HPP_ #ifndef _PROTO_STATUS_HPP_ #include #endif #ifndef _ALADIN_INFORMATION_HPP_ #include #endif #ifndef _ALADIN_PROFILES_HPP_ #include #endif #ifndef _ALADIN_PROFILEDATA_HPP_ #include #endif #ifndef _ALADIN_LOGBOOK_HPP_ #include #endif #ifndef _ALADIN_RAWDATA_HPP_ #include #endif class CommControl; class GUIWindow; class Progress; class Worksheet; class Aladin { public: Aladin(); virtual ~Aladin(); bool openRaw(const String &strPathFileName); bool openDevice(const String &port,GUIWindow &parent); bool openLog(const String &pathFileName); bool saveRaw(const String &strPathFileName); bool saveWorksheet(const String &strPathFileName); bool saveText(const String &strPathFileName); bool saveLog(const String &strPathFileName); const CurrentStatus &getStatus(void)const; const Information &getInformation(void)const; const Profiles &getProfile(void)const; const LogBook &getLogBook(void)const; void clear(void); bool isOkay(void)const; private: bool readRaw(Array &body); bool getControlData(CommControl &control,Progress &progress); void addProfile(Worksheet &worksheet,const Profiles &profiles,int startRow,int startCol); void addDiveLog(Worksheet &worksheet,const LogBook &logBook,int startRow,int startCol); CurrentStatus mStatus; Information mInformation; Profiles mProfiles; LogBook mLogBook; RawData mRawData; bool mIsOkay; }; inline bool Aladin::isOkay(void)const { return mIsOkay; } inline void Aladin::clear(void) { mProfiles.remove(); mLogBook.remove(); mIsOkay=false; } #endif