.. _program_listing_file_trickle_trickle.hpp: Program Listing for File trickle.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``trickle/trickle.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef TRICKLE_HPP_ #define TRICKLE_HPP_ #include #include #include #include #include "config/config.hpp" #include "trickle_manager.hpp" #include "ers/ers.h" #include "bus.hpp" #include "util.hpp" #include "utility.hpp" namespace trickle { ERS_DECLARE_ISSUE(felix_log, trickle_issue, issue_message, ((const std::string&)issue_message)) template class Trickle { public: explicit Trickle(std::unique_ptr config) : cfg(std::move(config)), m_hostname(Util::get_full_hostname()){ }; void start(); void stop(); public: std::unique_ptr cfg; std::list> devices; std::map> dma_buffers; //use device number as id private: std::string m_hostname{}; std::map m_bus_map{}; std::map>> m_trickle_managers{}; }; } // namespace trickle #endif // TRICKLE_MANAGER_HPP_