softwarecontainer
0.18.0-739e8d7 2017-05-04
|
Public Member Functions | |
Device (std::string name="", int mode=-1) | |
Device (const Device &dev) | |
bool | parse (const json_t *element) |
Configures this device by parsing the supplied JSON configuration string. More... | |
bool | activate (std::shared_ptr< ContainerAbstractInterface > container) |
Activates this device by running mknod and chmod commands which are run in the container. More... | |
void | calculateDeviceMode (const int appliedMode) |
const std::string | getName () |
int | getMode () |
bool | getIsconfigured () |
void | setMode (int _mode) |
Definition at line 29 of file devicenode.h.
bool softwarecontainer::Device::parse | ( | const json_t * | element | ) |
Configures this device by parsing the supplied JSON configuration string.
element | A JSON configuration item. |
Definition at line 39 of file devicenode.cpp.
References softwarecontainer::JSONParser::read().
Referenced by softwarecontainer::DeviceNodeGateway::readConfigElement().
bool softwarecontainer::Device::activate | ( | std::shared_ptr< ContainerAbstractInterface > | container | ) |
Activates this device by running mknod and chmod commands which are run in the container.
Definition at line 63 of file devicenode.cpp.