Overte C++ Documentation
Route.h
1 //
2 // Created by Bradley Austin Davis 2015/10/09
3 // Copyright 2015 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 
9 #pragma once
10 #ifndef hifi_Controllers_Route_h
11 #define hifi_Controllers_Route_h
12 
13 #include "Endpoint.h"
14 #include "Filter.h"
15 #include "Conditional.h"
16 
17 namespace controller {
18  /*
19  * encapsulates a source, destination and filters to apply
20  */
21  class Route {
22  public:
23  Endpoint::Pointer source;
24  Endpoint::Pointer destination;
25  Conditional::Pointer conditional;
26  Filter::List filters;
27  QString json;
28  bool debug { false };
29  bool peek { false };
30 
31  using Pointer = std::shared_ptr<Route>;
32  using List = std::list<Pointer>;
33  };
34 }
35 
36 #endif