~thomas-voss/location-service/enable-gnd-messages

« back to all changes in this revision

Viewing changes to src/location/service/demultiplexing_reporter.h

  • Committer: Thomas Voß
  • Date: 2016-06-26 21:17:03 UTC
  • mto: This revision was merged to the branch mainline in revision 259.
  • Revision ID: thomas.voss@canonical.com-20160626211703-aptpytiwrjdr1snn
Simplify namespaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * Authored by: Thomas Voß <thomas.voss@canonical.com>
17
17
 */
18
 
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_
19
 
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_
20
 
 
21
 
#include <com/ubuntu/location/service/harvester.h>
22
 
 
23
 
namespace com{namespace ubuntu{namespace location{namespace service
 
18
#ifndef LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_
 
19
#define LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_
 
20
 
 
21
#include <location/service/harvester.h>
 
22
 
 
23
namespace location{namespace service
24
24
{
25
25
 
26
26
// A simple demultiplexer, distributing updates to a set of
38
38
 
39
39
    // Triggers the reporters to send off the information.
40
40
    void report(const Update<Position>& update,
41
 
                const std::vector<connectivity::WirelessNetwork::Ptr>& wifis,
42
 
                const std::vector<connectivity::RadioCell::Ptr>& cells) override;
 
41
                const std::vector<com::ubuntu::location::connectivity::WirelessNetwork::Ptr>& wifis,
 
42
                const std::vector<com::ubuntu::location::connectivity::RadioCell::Ptr>& cells) override;
43
43
private:
44
44
    std::mutex reporters_guard;
45
45
    std::set<Harvester::Reporter::Ptr> reporters;
46
46
};
47
 
}}}}
 
47
}}
48
48
 
49
 
#endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_
 
49
#endif // LOCATION_SERVICE_DEMULTIPLEXING_REPORTER_H_