anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceLightSource

QueryDeviceLightSource searches and returns a light source device from the PHX's devices list.

C++
DeviceLightSource * QueryDeviceLightSource(const xkode::lib::String& Name);
Parameters 
Description 
const xkode::lib::String& Name 
[in] Relative name of the device:
Ex: light0/mydevice 

Pointer to the instance of the required device. The function returns NULL if the device were not found.

//MODA C++ native sample code

//...
ModaCPP::DeviceLightSource *pDevice=pPHX->QueryDeviceLightSource("light0/mydevice");
if(pDevice) ...
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!