Play-/Source/StructCollectionStateFile.h

31 lines
726 B
C
Raw Normal View History

2017-09-09 21:38:26 +00:00
#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;
2018-04-30 20:01:23 +00:00
CStructCollectionStateFile(const char*);
CStructCollectionStateFile(Framework::CStream&);
virtual ~CStructCollectionStateFile() = default;
2018-04-30 20:01:23 +00:00
void InsertStruct(const char*, const CStructFile&);
void Read(Framework::CStream&);
void Write(Framework::CStream&) override;
2018-04-30 20:01:23 +00:00
StructIterator GetStructBegin() const;
StructIterator GetStructEnd() const;
2018-04-30 20:01:23 +00:00
StructIterator begin() const;
StructIterator end() const;
2017-09-10 18:01:53 +00:00
private:
2018-04-30 20:01:23 +00:00
StructMap m_structs;
};