devicecache.hh

来自「It s a tool designed to extract as much 」· HH 代码 · 共 54 行

HH
54
字号
/* -*- c++ -*- ---------------------------------------------------------------   Copyright (C) 2005, SWECO, All Rights Reserved.   A simple priority cache for device info.   $Id$   Author: Zsolt Molnar (Zsolt.Molnar@ieee.org)   ---------------------------------------------------------------------------*/#ifndef __DEVICECACHE_HH__#define __DEVICECACHE_HH__#include "base.hh"#include "DeviceRecord.hh"#include "Cache.hh"#ifdef _cplusplusextern "C" {#endifclass DeviceCache : virtual public Cache<DeviceRecord>{public:	// Construct/destruct/copy	DeviceCache(const size_t aMaxSize,				const string& aDbID) : Cache<DeviceRecord>(aMaxSize),									   _fileName(aDbID) {};	virtual ~DeviceCache() {};	virtual void  setMaxSize ( const size_t aMaxSize );	bool save();	bool load();private:	string _fileName;#ifdef __TEST__public:		bool test();#endif // #ifdef __TEST__};#ifdef _cplusplus}#endif#endif  // #ifndef __DEVICECACHE_HH__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?