hardcodeddevicetypeextractor.hh
来自「It s a tool designed to extract as much 」· HH 代码 · 共 63 行
HH
63 行
/* -*- c++ -*- --------------------------------------------------------------- Copyright (C) 2005, SWECO, All Rights Reserved. Extract device type by a hard-coded database $Id$ Author: Zsolt Molnar (Zsolt.Molnar@ieee.org) ---------------------------------------------------------------------------*/#ifndef __HARDCODEDDEVICETYPEEXTRACTOR_HH__#define __HARDCODEDDEVICETYPEEXTRACTOR_HH__#include <string>#include <map>#include "base.hh"#include "Device.hh"#include "IDeviceTypeExtractor.hh"#ifdef _cplusplusextern "C" {#endifclass HardcodedDeviceTypeExtractor : virtual public IDeviceTypeExtractor {public: HardcodedDeviceTypeExtractor(); virtual ~HardcodedDeviceTypeExtractor() {}; virtual Device::tDeviceType getDeviceType(const string& aDevClassID); virtual Device::tOBEXChannel getOBEXChannel(const string& aDevClassID);private: typedef struct _tDevInfo { Device::tDeviceType type; Device::tOBEXChannel OBEXChannel; }; typedef map<string, _tDevInfo> _tDevTypeMap; static _tDevTypeMap _devTypeMap; static bool _devTypeMap_isReady;private: void _fillDevTypeMap();#ifdef __TEST__public: static bool test();#endif // #ifdef __TEST__};#ifdef _cplusplus}#endif#endif /* #ifndef __HARDCODEDDEVICETYPEEXTRACTOR_HH__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?