Public C++ interface.
More...
#include <iio/iio.h>
#include <string>
#include <boost/optional.hpp>
#include <stdexcept>
#include <system_error>
#include <cassert>
#include <type_traits>
Go to the source code of this file.
|
#define | IIOPP_HAVE_STD_OPIONAL (__cplusplus >= 201703L || _MSC_VER >= 1910) |
|
|
typedef optional< cstr > | iiopp::optstr |
| Optional string, used for C-functions that return nullptr for "no value".
|
|
typedef Ptr< ChannelsMask, iio_channels_mask, iio_channels_mask_destroy > | iiopp::ChannelsMaskPtr |
|
typedef Ptr< Block, iio_block, iio_block_destroy > | iiopp::BlockPtr |
|
typedef Ptr< Stream, iio_stream, iio_stream_destroy > | iiopp::StreamPtr |
|
typedef Ptr< EventStream, iio_event_stream, iio_event_stream_destroy > | iiopp::EventStreamPtr |
|
typedef Ptr< Buffer, iio_buffer, iio_buffer_destroy > | iiopp::BufferPtr |
|
typedef Ptr< cstr, void, free > | iiopp::CstrPtr |
|
typedef Ptr< Context, iio_context, iio_context_destroy > | iiopp::ContextPtr |
|
typedef Ptr< Scan, struct iio_scan, iio_scan_destroy > | iiopp::ScanPtr |
|
|
optstr | iiopp::impl::opt (char const *s) |
|
template<class T , class C > |
optional< T > | iiopp::impl::maybe (C *obj) |
|
std::string | iiopp::impl::err_str (int err) |
|
void | iiopp::impl::err (int err, char const *ctx) |
|
void | iiopp::impl::check (int ret, char const *ctx) |
|
template<class T > |
T * | iiopp::impl::check (T *ret, char const *ctx) |
|
template<class T > |
T | iiopp::impl::check_n (T n, char const *s) |
|
template<class obj_T , iio_attr const * find_attr_T> |
optional< Attr > | iiopp::impl::attr (obj_T const *obj, cstr name) |
|
template<class obj_T , iio_attr const * get_attr_T> |
optional< Attr > | iiopp::impl::attr (obj_T const *obj, unsigned int index) |
|
ChannelsMaskPtr | iiopp::create_channels_mask (unsigned int nb_channels) |
|
ContextPtr | iiopp::create_context (iio_context_params *params, const char *uri) |
| C++ wrapper for iio_create_context.
|
|
ScanPtr | iiopp::scan (struct iio_context_params const *params, char const *backends) |
|
double | iiopp::value (Channel ch) |
| Reads the value of a channel by using "input" or "raw" attribute and applying "scale" and "offset" if available. More...
|
|
Public C++ interface.
- See also
- iiopp