OSVR-Core
AnalogRemoteFactory.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_AnalogRemoteFactory_h_GUID_F2F60718_042B_44BD_B697_50D3434C72CE
26 #define INCLUDED_AnalogRemoteFactory_h_GUID_F2F60718_042B_44BD_B697_50D3434C72CE
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("analog", *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_AnalogRemoteFactory_h_GUID_F2F60718_042B_44BD_B697_50D3434C72CE
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
shared_ptr< RemoteHandler > operator()(common::OriginalSource const &source, common::InterfaceList &ifaces, common::ClientContext &ctx)
Definition: AnalogRemoteFactory.cpp:122
Definition: AnalogRemoteFactory.h:46