Erwan
- cache system for Deck Meta Data. let's improve it as needs arise
This commit is contained in:
27
projects/mtg/include/DeckMetaData.h
Normal file
27
projects/mtg/include/DeckMetaData.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef _DECKMETADATA_H_
|
||||
#define _DECKMETADATA_H_
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class DeckMetaData {
|
||||
public:
|
||||
DeckMetaData(string filename);
|
||||
void load(string filename);
|
||||
string desc;
|
||||
string name;
|
||||
};
|
||||
|
||||
class DeckMetaDataList {
|
||||
public:
|
||||
void invalidate(string filename);
|
||||
DeckMetaData * get(string filename);
|
||||
~DeckMetaDataList();
|
||||
static DeckMetaDataList * decksMetaData;
|
||||
private:
|
||||
map<string,DeckMetaData *>values;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user