Leosac  0.8.0
Open Source Access Control
Leosac::Module::Libgpiod::LibgpiodConfig Class Reference

Internal configuration helper for libgpiod module. More...

#include <LibgpiodConfig.hpp>

+ Collaboration diagram for Leosac::Module::Libgpiod::LibgpiodConfig:

Public Member Functions

 LibgpiodConfig (const boost::property_tree::ptree &cfg)
 Construct the general config object from the configuration tree. More...
 
const std::string & consumer () const
 Returns the consumer name that will be temporary assigned to the GPIO. More...
 

Private Attributes

std::string consumer_
 The consumer name that will be temporary assigned to the GPIO. More...
 

Detailed Description

Internal configuration helper for libgpiod module.

Definition at line 37 of file LibgpiodConfig.hpp.

Constructor & Destructor Documentation

◆ LibgpiodConfig()

LibgpiodConfig::LibgpiodConfig ( const boost::property_tree::ptree &  cfg)

Construct the general config object from the configuration tree.

Definition at line 28 of file LibgpiodConfig.cpp.

Member Function Documentation

◆ consumer()

const std::string & LibgpiodConfig::consumer ( ) const

Returns the consumer name that will be temporary assigned to the GPIO.

Definition at line 41 of file LibgpiodConfig.cpp.

Member Data Documentation

◆ consumer_

std::string Leosac::Module::Libgpiod::LibgpiodConfig::consumer_
private

The consumer name that will be temporary assigned to the GPIO.

Definition at line 56 of file LibgpiodConfig.hpp.


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