OSVR-Core
LocomotionRemoteFactory.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_LocomotionRemoteFactory_h_GUID_19F77BA9_ADEF_4A81_9CDA_1681574C5F72
26 #define INCLUDED_LocomotionRemoteFactory_h_GUID_19F77BA9_ADEF_4A81_9CDA_1681574C5F72
27 
28 // Internal Includes
32 #include <osvr/Util/SharedPtr.h>
35 
36 // Library/third-party includes
37 // - none
38 
39 // Standard includes
40 // - none
41 
42 namespace osvr {
43 namespace client {
44 
46  public:
48 
49  template <typename T> void registerWith(T &factory) const {
50  factory.addFactory("locomotion", *this);
51  }
52 
53  shared_ptr<RemoteHandler>
54  operator()(common::OriginalSource const &source,
55  common::InterfaceList &ifaces, common::ClientContext &ctx);
56 
57  private:
59  };
60 
61 } // namespace client
62 } // namespace osvr
63 
64 #endif // INCLUDED_LocomotionRemoteFactory_h_GUID_19F77BA9_ADEF_4A81_9CDA_1681574C5F72
shared_ptr< RemoteHandler > operator()(common::OriginalSource const &source, common::InterfaceList &ifaces, common::ClientContext &ctx)
Definition: LocomotionRemoteFactory.cpp:127
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.
Definition: ClientContext.h:50
Definition: VRPNConnectionCollection.h:42
Definition: LocomotionRemoteFactory.h:45