5#include "include/data_types/string.h"
89 bool is_database_table_{
false};
91 quint32 file_position_;
98 qint32 estimated_row_count_{0};
99 double estimated_bytes_per_row_{0.0};
102 void initEstimatedData();
The String class acts as a QString wrapper for EHM text strings.
Definition: string.h:22
QString get() const
Returns the current text string.
Definition: string.h:108
The SavedGameSubFile class represents a sub-file of a saved game and provides access to the binary da...
Definition: saved_game_sub_file.h:16
qint32 estimatedRowCount() const
Returns the estimated row count based on the integer or short value of the first four or two bytes of...
Definition: saved_game_sub_file.h:55
quint32 filePosition() const
Returns the sub-file position (i.e. offset) within the saved game file.
Definition: saved_game_sub_file.h:65
void readTable(QDataStream &in)
Reads the raw binary data relating to the SavedGameTable.
void readHeader(QDataStream &in)
Reads the saved game header relating to the SavedGameTable.
~SavedGameSubFile()
Default destructor.
qint32 estimatedBytesPerRow() const
Returns the estimated size of each row in bytes. This is based on the estimated record count.
Definition: saved_game_sub_file.h:49
double fileSizeKilobytes() const
Returns the file size in KB (kilobytes). 1 KB = 1024 bytes.
bool isDatabaseTable() const
Returns whether or not the SavedGameTable is the saved game's Database table (i.e....
Definition: saved_game_sub_file.h:44
SavedGameSubFile()
Default constructor.
QString fileName() const
Returns the file name.
Definition: saved_game_sub_file.h:60
ENUM_FLAGS
The ENUM_TEXT_LENGTH enum denotes the fixed length of 8-bit char arrays of table names in the saved g...
Definition: saved_game_sub_file.h:82
@ TABLE_NAME_LENGTH
Definition: saved_game_sub_file.h:83
QByteArray * data()
Returns a pointer to the raw data of the sub-file.
namespace ehm_dal::saved_game
Definition: saved_game_data.h:13