/* * Copyright (C) 2014 Pavel Kirienko */ #pragma once #include #include #include namespace uavcan { class UAVCAN_EXPORT TransportStatsProvider : Noncopyable { typedef MethodBinder GetTransportStatsCallback; ServiceServer srv_; void handleGetTransportStats(const protocol::GetTransportStats::Request&, protocol::GetTransportStats::Response& resp) const; public: explicit TransportStatsProvider(INode& node) : srv_(node) { } int start(); }; }