Query a specific Device and creates the template object.
template <class DEVICEOBJECT> DEVICEOBJECT* QueryDevice2(RobotPHX * pRobot, const xkode::lib::String& Name, Marilou::Commons::ActiveEntityClasses ActiveClass);
ModaCpp.h
Parameters |
Description |
RobotPHX * pRobot |
[in] Pointer to the robot that contains the device |
const xkode::lib::String& Name |
[in] Device relative name |
Marilou::Commons::ActiveEntityClasses ActiveClass |
[in] Required deice type |
A pointer to the template object if device is found, NULL otherwise. Returned objects must be deleted with the C++ delete keyword.
The template object must have a constructor like:
MyDeviceObject::MyDeviceObject(Marilou::Commons::MYDEVICETYPEl type,xkode::lib::String Name):Device(type,Name);
See QueryDevice to learn more about devices Query.
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|