| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 
 |  
class BMUMowerLog
{
        public:
        std::string OwnerName;
        std::string OwnerSurname;
        std::string OwnerAddress;
        unsigned __int8  MowerType;
        std::map<BMULogTime,BMULog> Data; // Problème ICI car ne connait pas BMULog!!
        bool Insert(const BMULogTime &,const BMULog &);
        bool Insert(const BMULog &);
        bool SaveToFile(std::string);
        bool ReadFromFile(std::string);
        unsigned __int16 Count();
        BMULog* operator[](const BMULogTime&);
 
 
};
//---------------------------------------------------------------------------
class BMULog : public BMUSerialDump
{       private:
        bool ReadFromFile(std::ifstream&); // Doit être accessible par BMUMowerLog::ReadFromFile
        public:
        unsigned __int32 SNB;
        unsigned __int8  BootVersion;
        unsigned __int32 SoftVersion;
        BMULogTime Time;
        std::string LogInformation;    
        BMULog();
        BMULog(unsigned __int8*,unsigned __int16);
        BMULog(unsigned __int8*,unsigned __int16,std::string);
        unsigned __int32 Size();
        friend bool BMUMowerLog::ReadFromFile(std::string); 
 
}; | 
Partager