mirror of
https://github.com/libretro/Play-.git
synced 2024-12-02 14:36:38 +00:00
31 lines
726 B
C++
31 lines
726 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include "zip/ZipFile.h"
|
|
#include "StructFile.h"
|
|
#include "uint128.h"
|
|
|
|
class CStructCollectionStateFile : public Framework::CZipFile
|
|
{
|
|
public:
|
|
typedef std::map<std::string, CStructFile> StructMap;
|
|
typedef StructMap::const_iterator StructIterator;
|
|
|
|
CStructCollectionStateFile(const char*);
|
|
CStructCollectionStateFile(Framework::CStream&);
|
|
virtual ~CStructCollectionStateFile() = default;
|
|
|
|
void InsertStruct(const char*, const CStructFile&);
|
|
void Read(Framework::CStream&);
|
|
void Write(Framework::CStream&) override;
|
|
|
|
StructIterator GetStructBegin() const;
|
|
StructIterator GetStructEnd() const;
|
|
|
|
StructIterator begin() const;
|
|
StructIterator end() const;
|
|
|
|
private:
|
|
StructMap m_structs;
|
|
};
|