winIDEA SDK
|
This class presents a storage devices factory methods.
#include <CStorageDeviceFactory.h>
Static Public Member Functions | |
static std::shared_ptr< CStorageDeviceController > | makeDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const std::string deviceName) |
Creates pointer to specified device type by device name. More... | |
static std::shared_ptr< CStorageDeviceController > | makeDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const std::string deviceName, const std::string partitionName) |
Creates pointer to specified device type by device and partition name. More... | |
static std::shared_ptr< CStorageDeviceController > | makeDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const uint32_t deviceIndex) |
Creates pointer to specified device type by device index. More... | |
static std::shared_ptr< CStorageDeviceController > | makeDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const uint32_t deviceIndex, const std::string partitionName) |
Creates pointer to specified device type by device index and partition name. More... | |
static void | terminateDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const std::string deviceName) |
Terminates device connection by name. More... | |
static void | terminateDevice (ConnectionMgrSPtr connectionMgr, const EStorageDevice type, const uint32_t deviceIndex) |
Terminates device connection by index. More... | |
static void | getDeviceNames (ConnectionMgrSPtr connectionMgr, std::vector< std::string > &deviceNames) |
Collects all enabled storage device names. More... | |
static void | getDeviceInfo (ConnectionMgrSPtr connectionMgr, std::string deviceName, iconnect::StrStrMap &elements) |
Provides device info - internal device structure. More... | |
Static Public Attributes | |
static const std::string | DEVICES_OPT_URL |
Option URL to be used by COptionController to set winIDEA options related to storage devices. | |
|
static |
Provides device info - internal device structure.
Valid only for partition based devices (emmc).
connectionMgr | connection manager |
deviceName | storage device name |
elements | device parameters as mapping |
IOException | if no device by deviceName exists. |
Python example: test_storage_get_device_info.py
|
static |
Collects all enabled storage device names.
connectionMgr | connection manager |
deviceNames | vector of all available storage device names |
Python example: test_storage_get_devices_names.py
Python example: test_storage_get_devices_number.py
|
static |
Creates pointer to specified device type by device name.
When using partition based devices (emmc), makeDevice loads monitor to the device. Don't call any non-storage SDK function before unloading monitor with terminateDevice.
connectionMgr | connection manager |
type | storage device type |
deviceName | device name |
|
static |
Creates pointer to specified device type by device and partition name.
When using partition based devices (emmc), makeDevice loads monitor to the device. Don't call any non-storage SDK function before unloading monitor with terminateDevice.
connectionMgr | connection manager |
type | storage device type |
deviceName | device name |
partitionName | partition name |
|
static |
Creates pointer to specified device type by device index.
When using partition based devices (emmc), makeDevice loads monitor to the device. Don't call any non-storage SDK function before unloading monitor with terminateDevice.
connectionMgr | connection manager |
type | storage device type |
deviceIndex | device index |
|
static |
Creates pointer to specified device type by device index and partition name.
When using partition based devices (emmc), makeDevice loads monitor to the device. Don't call any non-storage SDK function before unloading monitor with terminateDevice.
connectionMgr | connection manager |
type | storage device type |
deviceIndex | device index |
partitionName | partition name |
|
static |
Terminates device connection by name.
Valid only for partition based devices (emmc).
connectionMgr | connection manager |
type | storage device type |
deviceName | device name |
Python example: test_storage_init_terminate.py
|
static |
Terminates device connection by index.
Valid only for partition based devices (emmc).
connectionMgr | connection manager |
type | storage device type |
deviceIndex | device index |