libsigrokcxx  0.4.0
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...
 
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 952 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 956 of file libsigrokcxx.hpp.

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

The name associated with this value.

Definition at line 961 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 966 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 974 of file libsigrokcxx.hpp.


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