Subversion Repositories tpanel

Rev

Rev 446 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 475
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2022 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2022 to 2024 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 240... Line 240...
240
            ~ReadTP4();
240
            ~ReadTP4();
241
 
241
 
242
            bool isReady();
242
            bool isReady();
243
            bool doRead();
243
            bool doRead();
244
            std::string toHex(int num, int width);
244
            std::string toHex(int num, int width);
-
 
245
            bool isTP5() { return tp5Type; }
245
 
246
 
246
        private:
247
        private:
247
            void fillBlock(struct BLOCK& bl, const unsigned char *buf);
248
            void fillBlock(struct BLOCK& bl, const unsigned char *buf);
248
            void fillUsageBlock(struct USAGE_BLOCK& ub, const unsigned char *buf);
249
            void fillUsageBlock(struct USAGE_BLOCK& ub, const unsigned char *buf);
249
            void fillFileHead(struct FILE_HEAD& fh, const unsigned char *buf);
250
            void fillFileHead(struct FILE_HEAD& fh, const unsigned char *buf);
Line 256... Line 257...
256
            uint16_t makeWord(const unsigned char *buf);
257
            uint16_t makeWord(const unsigned char *buf);
257
            std::string cp1250ToUTF8(const std::string& str);
258
            std::string cp1250ToUTF8(const std::string& str);
258
            static bool compareManifest(struct MANIFEST& m1, struct MANIFEST& m2);
259
            static bool compareManifest(struct MANIFEST& m1, struct MANIFEST& m2);
259
 
260
 
260
            std::vector<struct MANIFEST> manifest;
261
            std::vector<struct MANIFEST> manifest;
-
 
262
            bool tp5Type{false};
261
    };
263
    };
262
}
264
}
263
 
265
 
264
#endif
266
#endif