📄 hardcodeddevicetypeextractor.hh
字号:
/* -*- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -