libsigrokcxx  unreleased development snapshot
C++ bindings for libsigrok
Public Member Functions | Static Public Member Functions | List of all members
sigrok::EnumValue< Class, Enum > Class Template Reference

Base class for objects which wrap an enumeration value from libsigrok. More...

#include <libsigrokcxx/libsigrokcxx.hpp>

+ Inheritance diagram for sigrok::EnumValue< Class, Enum >:

Public Member Functions

int id () const
 The integer constant associated with this value. More...
 
std::string name () const
 The name associated with this value. More...
 

Static Public Member Functions

static const Class * get (int id)
 Get value associated with a given integer constant. More...
 
static std::vector< const Class * > values ()
 Get possible values. More...
 

Detailed Description

template<class Class, typename Enum>
class sigrok::EnumValue< Class, Enum >

Base class for objects which wrap an enumeration value from libsigrok.

Definition at line 1051 of file libsigrokcxx.hpp.

Member Function Documentation

template<class Class, typename Enum>
int sigrok::EnumValue< Class, Enum >::id ( ) const
inline

The integer constant associated with this value.

Definition at line 1055 of file libsigrokcxx.hpp.

template<class Class, typename Enum>
std::string sigrok::EnumValue< Class, Enum >::name ( ) const
inline

The name associated with this value.

Definition at line 1060 of file libsigrokcxx.hpp.

template<class Class, typename Enum>
static const Class* sigrok::EnumValue< Class, Enum >::get ( int  id)
inlinestatic

Get value associated with a given integer constant.

Definition at line 1065 of file libsigrokcxx.hpp.

template<class Class, typename Enum>
static std::vector<const Class *> sigrok::EnumValue< Class, Enum >::values ( )
inlinestatic

Get possible values.

Definition at line 1073 of file libsigrokcxx.hpp.


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