1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
9 // ============================================================================
11 // ============================================================================
15 #include "Service.hpp"
17 // ============================================================================
19 // ============================================================================
24 // ============================================================================
26 // ============================================================================
27 class DescriptionGetResult {
28 // ============================================================
30 // ============================================================
32 virtual ~DescriptionGetResult() {}
34 // ============================================================
36 // ============================================================
38 virtual QueryResultType getResult() const = 0;
39 virtual const std::set<Service::SharedPtr>& getServices() const = 0;
42 typedef std::function<void (const DescriptionGetResult&)> DescriptionGetFunction;
44 // ============================================================================
46 // ============================================================================
48 // ============================================================
50 // ============================================================
52 typedef std::shared_ptr<Description> SharedPtr;
53 typedef std::weak_ptr<Description> WeakPtr;
55 // ============================================================
57 // ============================================================
59 virtual ~Description() {}
61 // ============================================================
63 // ============================================================
65 virtual const std::set<Service::SharedPtr>& getServices() const = 0;
72 #endif /* DESCRIPTION_H_ */