Play-/Source/win32ui/MemoryCard.h

33 lines
642 B
C
Raw Normal View History

#ifndef _MEMORYCARD_H_
#define _MEMORYCARD_H_
#include <boost/filesystem/path.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include "../saves/Save.h"
class CMemoryCard
{
public:
typedef boost::ptr_vector<CSave> SaveList;
typedef SaveList::iterator SaveIterator;
CMemoryCard(boost::filesystem::path&);
~CMemoryCard();
size_t GetSaveCount() const;
const CSave* GetSaveByIndex(size_t) const;
const char* GetBasePath();
void RefreshContents();
private:
void ScanSaves();
SaveList m_Saves;
boost::filesystem::path m_BasePath;
};
#endif