The factory of devices.
More...
◆ getAvailableDeviceAt()
◆ getAvailableDeviceCount()
int DeviceFactory::getAvailableDeviceCount |
( |
| ) |
|
Returns the number of available device type.
- Returns
- int, number of available device type
◆ getAvailableDeviceForTypeAt()
DeviceDescriptor DeviceFactory::getAvailableDeviceForTypeAt |
( |
DeviceType |
, |
|
|
int |
|
|
) |
| |
Returns the available device descriptor of a specified type at a specified index.
- Parameters
-
type,enum<DeviceType> | - see documentation for function getDescriptor() above |
index,a | specified index |
- Returns
- DeviceDescriptor, DeviceDescriptor object
◆ getAvailableDeviceForTypeCount()
int DeviceFactory::getAvailableDeviceForTypeCount |
( |
DeviceType |
| ) |
|
Returns the available device model for a specified type.
- Parameters
-
type,enum<DeviceType> | - see documentation for function getDescriptor() above |
- Returns
- int, the available device model for a specified type
◆ getDescriptor()
Returns the Descriptor of the device.
- Parameters
-
- Returns
- enum<DeviceType>, the type of this device. Device types: eRouter = 0, eSwitch = 1, eCloud = 2, eBridge = 3, eHub = 4, eRepeater = 5, eCoAxialSplitter = 6, eAccessPoint = 7, ePc = 8, eServer = 9, ePrinter = 10, eWirelessRouter = 11, eIpPhone = 12, eDslModem = 13, eCableModem = 14, eRemoteNetwork = 15, eMultiLayerSwitch = 16, eLaptop = 17, eTabletPC = 18, ePda = 19, eWirelessEndDevice = 20, eWiredEndDevice = 21, eTV = 22, eHomeVoip = 23, eAnalogPhone = 24, eMultiUser = 25, eASA = 26, eIoE = 27, eHomeGateway = 28, eCellTower = 29, eCentralOfficeServer = 30, eWirelessLanController = 31,
- Parameters
-
model,the | device model in string format |
The documentation for this class was generated from the following file: