.. _program_listing_file_measurements_channel.h: Program Listing for File channel.h ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``measurements/channel.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include "lupnt/core/config.h" #include "lupnt/core/definitions.h" namespace lupnt { class Device; class Channel { public: Channel() = default; Channel(Config& config); ~Channel() = default; void AddDevice(Device* device); std::string GetName() const { return name_; } void Send(Device* tx, Real t, void* data); void Receive(Device* rx, Real t); static std::shared_ptr FromConfig(Config& config); protected: std::string name_; std::unordered_set devices_; }; } // namespace lupnt