12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- //
- // Created by Иван_Архипов on 01.11.2017.
- //
- #ifndef LOTRO_DAT_PATCHER_SUBFILE_H
- #define LOTRO_DAT_PATCHER_SUBFILE_H
- #include <string>
- extern "C++"
- {
- namespace LOTRO_DAT
- {
- class DatFile;
- class BinaryData;
- class Database;
- enum FILE_TYPE : int;
- class Subfile
- {
- public:
- Subfile();
- Subfile::Subfile(DatFile *dat, long long fragments_count, long long unknown1, long long file_id, long long file_offset,
- long long file_size, long long timestamp, long long version, long long block_size);
- virtual FILE_TYPE FileType() const;
- virtual std::string Extension() const;
- virtual bool PrepareAsBinary(BinaryData &data);
- virtual bool PrepareAsText(std::string &text, std::string &args, std::string &args_order);
- virtual BinaryData MakeFromBinary(const BinaryData &data);
- virtual BinaryData MakeFromText(const std::string &text, const std::string &args, const std::string &args_order);
- long long fragments_count() const;
- long long unknown1() const;
- long long file_id() const;
- long long file_offset() const;
- long long file_size() const;
- long long timestamp() const;
- long long version() const;
- long long block_size() const;
- protected:
- long long fragments_count_;
- long long unknown1_;
- long long file_id_;
- long long file_offset_;
- long long file_size_;
- long long timestamp_;
- long long version_;
- long long block_size_;
- DatFile *dat_;
- };
- }
- };
- #endif //LOTRO_DAT_PATCHER_SUBFILE_H
|