OSVR-Core
DirectionRemoteFactory.h
Go to the documentation of this file.
1 
12 // Copyright 2015 Sensics, Inc.
13 //
14 // Licensed under the Apache License, Version 2.0 (the "License");
15 // you may not use this file except in compliance with the License.
16 // You may obtain a copy of the License at
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 // See the License for the specific language governing permissions and
24 // limitations under the License.
25 
26 #ifndef INCLUDED_DirectionRemoteFactory_h_GUID_9AFC82C8_7169_4BAB_1F5C_86AEFF818163
27 #define INCLUDED_DirectionRemoteFactory_h_GUID_9AFC82C8_7169_4BAB_1F5C_86AEFF818163
28 
29 // Internal Includes
33 #include <osvr/Util/SharedPtr.h>
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("direction", *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_DirectionRemoteFactory_h_GUID_9AFC82C8_7169_4BAB_1F5C_86AEFF818163
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: DirectionRemoteFactory.h:46
shared_ptr< RemoteHandler > operator()(common::OriginalSource const &source, common::InterfaceList &ifaces, common::ClientContext &ctx)
Definition: DirectionRemoteFactory.cpp:105
Definition: ClientContext.h:50
Definition: VRPNConnectionCollection.h:42