EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
ehm_dal::saved_game::SavedGameData Class Reference

The SavedGameData class contains the individual binary sub-files comprising the saved game. More...

#include <saved_game_data.h>

Public Member Functions

 SavedGameData ()
 Default constructor.
 
 ~SavedGameData ()
 Default destructor.
 
bool read (QDataStream &in)
 Reads the saved game file from the QDataStream.
 
std::vector< std::shared_ptr< SavedGameSubFile > > find (const QString &sub_file_name, const Qt::CaseSensitivity cs=Qt::CaseInsensitive)
 Finds all sub-files containing sub_file_name and returns all results in a vector.
 
bool isCompressed () const
 Returns whether the saved game is compressed.
 

Detailed Description

The SavedGameData class contains the individual binary sub-files comprising the saved game.

Member Function Documentation

◆ find()

std::vector< std::shared_ptr< SavedGameSubFile > > ehm_dal::saved_game::SavedGameData::find ( const QString &  sub_file_name,
const Qt::CaseSensitivity  cs = Qt::CaseInsensitive 
)

Finds all sub-files containing sub_file_name and returns all results in a vector.

Parameters
sub_file_nameTarget sub-file name
csCase sensitivity
Returns
a vector of shared pointers to the relevant sub-files.

◆ isCompressed()

bool ehm_dal::saved_game::SavedGameData::isCompressed ( ) const
inline

Returns whether the saved game is compressed.

Returns
whether the saved game is compressed.

◆ read()

bool ehm_dal::saved_game::SavedGameData::read ( QDataStream &  in)

Reads the saved game file from the QDataStream.

Parameters
inQDataStream attached to the saved game
Returns
whether the file was successfully opened and parsed.