libm2k
Public Member Functions | List of all members
libm2k::context::Context Class Referenceabstract

Controls the IIO context. More...

#include <context.hpp>

Inheritance diagram for libm2k::context::Context:
Inheritance graph
[legend]

Public Member Functions

virtual std::string getUri ()=0
 Get the URI of the current context. More...
 
virtual libm2k::analog::DMMgetDMM (unsigned int index)=0
 Retrieve the DMM object at a certain index. More...
 
virtual libm2k::analog::DMMgetDMM (std::string name)=0
 Retrieve the DMM object which has the provided name. More...
 
virtual std::vector< libm2k::analog::DMM * > getAllDmm ()=0
 Retrieve all the DMM objects. More...
 
virtual std::vector< std::string > getAvailableContextAttributes ()=0
 Retrieve all the available context attributes. More...
 
virtual std::string getContextAttributeValue (std::string attr)=0
 Retrieve the value of one context attribute. More...
 
virtual std::string getContextDescription ()=0
 Retrieve a detailed context description. More...
 
virtual std::string getSerialNumber ()=0
 Retrieve the current context serial number. More...
 
virtual std::unordered_set< std::string > getAllDevices () const =0
 Retrieve all the available devices. More...
 
virtual void logAllAttributes () const =0
 Log all the attributes. More...
 
virtual M2ktoM2k ()=0
 Convert the current context to M2k context, if possible. More...
 
virtual Lidar * toLidar ()=0
 Convert the current context to Lidar context, if possible. More...
 
virtual Generic * toGeneric ()=0
 Convert the current context to Generic context, if possible. More...
 
virtual unsigned int getDmmCount ()=0
 Retrieve the number of DMM objects. More...
 
virtual std::string getFirmwareVersion ()=0
 Retrieve the firmware version of the current context. More...
 
virtual const struct libm2k::IIO_CONTEXT_VERSION getIioContextVersion ()=0
 
virtual struct iio_context * getIioContext ()=0
 
virtual void setTimeout (unsigned int timeout)=0
 Set a timeout for I/O operations. More...
 

Detailed Description

Controls the IIO context.


The documentation for this class was generated from the following file: