OSVR-Core
TrackerRemoteFactory.h
Go to the documentation of this file.
1 
11 // Copyright 2015 Sensics, Inc.
12 //
13 // Licensed under the Apache License, Version 2.0 (the "License");
14 // you may not use this file except in compliance with the License.
15 // You may obtain a copy of the License at
16 //
17 // http://www.apache.org/licenses/LICENSE-2.0
18 //
19 // Unless required by applicable law or agreed to in writing, software
20 // distributed under the License is distributed on an "AS IS" BASIS,
21 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 // See the License for the specific language governing permissions and
23 // limitations under the License.
24 
25 #ifndef INCLUDED_TrackerRemoteFactory_h_GUID_C473E294_CC7C_49A2_C03F_B47458E22EDB
26 #define INCLUDED_TrackerRemoteFactory_h_GUID_C473E294_CC7C_49A2_C03F_B47458E22EDB
27 
28 // Internal Includes
32 #include <osvr/Util/SharedPtr.h>
34 
36 
37 // Library/third-party includes
38 // - none
39 
40 // Standard includes
41 // - none
42 
43 namespace osvr {
44 namespace client {
45 
47  public:
49 
50  template <typename T> void registerWith(T &factory) const {
51  factory.addFactory("tracker", *this);
52  }
53 
54  shared_ptr<RemoteHandler>
55  operator()(common::OriginalSource const &source,
56  common::InterfaceList &ifaces, common::ClientContext &ctx);
57 
58  private:
60  };
61 
62 } // namespace client
63 } // namespace osvr
64 
65 #endif // INCLUDED_TrackerRemoteFactory_h_GUID_C473E294_CC7C_49A2_C03F_B47458E22EDB
The result of resolving a tree node to a device: either an original source to connect to...
Definition: OriginalSource.h:47
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Header to bring shared_ptr into the osvr namespace.
shared_ptr< RemoteHandler > operator()(common::OriginalSource const &source, common::InterfaceList &ifaces, common::ClientContext &ctx)
Definition: TrackerRemoteFactory.cpp:283
Definition: TrackerRemoteFactory.h:46
Definition: ClientContext.h:50
Definition: VRPNConnectionCollection.h:42