CMS 3D CMS Logo

DTKeyedConfigCache.h
Go to the documentation of this file.
1 #ifndef CondTools_DT_DTKeyedConfigCache_h
2 #define CondTools_DT_DTKeyedConfigCache_h
3 
17 #include <map>
18 #include <string>
19 #include <vector>
20 
22 
23 class DTKeyedConfig;
24 
25 // ---------------------
26 // -- Class Interface --
27 // ---------------------
28 
30 public:
32  DTKeyedConfigCache(const DTKeyedConfigCache& x) = delete;
33  const DTKeyedConfigCache& operator=(const DTKeyedConfigCache& x) = delete;
34  virtual ~DTKeyedConfigCache();
35 
36  int get(const cond::persistency::KeyList& keyList, int cfgId, const DTKeyedConfig*& obj);
37 
38  void getData(const cond::persistency::KeyList& keyList, int cfgId, std::vector<std::string>& list);
39 
40  void purge();
41 
42  static const int maxBrickNumber;
43  static const int maxStringNumber;
44  static const int maxByteNumber;
45 
46 private:
47  typedef std::pair<int, const DTKeyedConfig*> counted_brick;
48  std::map<int, counted_brick> brickMap;
52 };
53 #endif
std::map< int, counted_brick > brickMap
std::pair< int, const DTKeyedConfig * > counted_brick
const DTKeyedConfigCache & operator=(const DTKeyedConfigCache &x)=delete
void getData(const cond::persistency::KeyList &keyList, int cfgId, std::vector< std::string > &list)
static const int maxByteNumber
static const int maxBrickNumber
static const int maxStringNumber