anyKode Marilou
ContentsIndexHome
PreviousUpNext
ModaCPP::QueryDevice2

Query a specific Device and creates the template object.

C++
template <class DEVICEOBJECT> DEVICEOBJECT* QueryDevice2(RobotPHX * pRobot, xkode::lib::String Name, Marilou::Commons::ActiveEntityClasses ActiveClass);

ModaCpp.h

Parameters 
Description 
RobotPHX * pRobot 
[in] Pointer to the robot that contains the device 
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 (17/05/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!