00001 /* 00002 * Copyright (c) 2010 Ferruccio Vitale <unixo@devzero.it> 00003 * All rights reserved. 00004 * 00005 * $Id: DataModel.h 75 2010-09-13 09:25:53Z unixo $ 00006 */ 00007 00008 #ifndef __DATAMODEL_H__ 00009 #define __DATAMODEL_H__ 00010 00011 #include "common.h" 00012 00013 using namespace std; 00014 00023 class DataModel : public Singleton<DataModel> 00024 { 00025 private: 00026 map<std::string, StringSet *> _models; 00027 00028 protected: 00029 friend class Singleton<DataModel>; 00030 DataModel(); 00031 virtual ~DataModel(); 00032 00033 public: 00034 StringSet & keysForEntity(string anEntity); 00035 }; 00036 00037 #endif /* __DATAMODEL_H__ */