24 #include <zmqpp/poller.hpp>    25 #include <zmqpp/socket.hpp>    48     FGPIO(zmqpp::context &ctx, 
const std::string &gpio_name);
    64     bool turnOn(std::chrono::milliseconds duration);
    95     const std::string &
name() 
const;
 zmqpp::poller poller_
A poller to not wait for infinity in case something went wrong. 
 
bool turnOff()
Turn the GPIO OFF by sending a message to the backend GPIO impl. 
 
A Facade to a GPIO object. 
 
This is the header file for a generated source file, GitSHA1.cpp. 
 
zmqpp::socket backend_
A socket to talk to the backend GPIO. 
 
FGPIO(zmqpp::context &ctx, const std::string &gpio_name)
 
const std::string & name() const
Name of the GPIO pin as defined in the configuration file. 
 
bool turnOn()
Turn the GPIO ON by sending a message to the backend GPIO impl. 
 
~FGPIO()=default
Default destructor, RAII does the job. 
 
bool isOff()
Similar to isOn(). 
 
bool toggle()
Toggle the GPIO value by sending a message to the backend GPIO impl. 
 
bool isOn()
Query the value of the GPIO and returns true if the LED is ON.