OSVR-Core
src
osvr
Client
ButtonRemoteFactory.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_ButtonRemoteFactory_h_GUID_B51EC814_96AA_4195_DACE_7B0CF376AEA8
26
#define INCLUDED_ButtonRemoteFactory_h_GUID_B51EC814_96AA_4195_DACE_7B0CF376AEA8
27
28
// Internal Includes
29
#include "
VRPNConnectionCollection.h
"
30
#include <
osvr/Common/InterfaceList.h
>
31
#include <
osvr/Common/OriginalSource.h
>
32
#include <
osvr/Util/SharedPtr.h
>
33
#include <
osvr/Client/RemoteHandler.h
>
34
#include <
osvr/Common/ClientContext.h
>
35
36
// Library/third-party includes
37
// - none
38
39
// Standard includes
40
// - none
41
42
namespace
osvr
{
43
namespace
client {
44
45
class
ButtonRemoteFactory
{
46
public
:
47
ButtonRemoteFactory
(
VRPNConnectionCollection
const
&conns);
48
49
template
<
typename
T>
void
registerWith(
T
&factory)
const
{
50
factory.addFactory(
"button"
, *
this
);
51
}
52
53
shared_ptr<RemoteHandler>
54
operator()
(
common::OriginalSource
const
&source,
55
common::InterfaceList &ifaces,
common::ClientContext
&ctx);
56
57
private
:
58
VRPNConnectionCollection
m_conns;
59
};
60
61
}
// namespace client
62
}
// namespace osvr
63
64
#endif // INCLUDED_ButtonRemoteFactory_h_GUID_B51EC814_96AA_4195_DACE_7B0CF376AEA8
osvr::common::OriginalSource
The result of resolving a tree node to a device: either an original source to connect to...
Definition:
OriginalSource.h:47
InterfaceList.h
Header.
osvr
The main namespace for all C++ elements of the framework, internal and external.
Definition:
namespace_osvr.dox:3
osvr::client::ButtonRemoteFactory::operator()
shared_ptr< RemoteHandler > operator()(common::OriginalSource const &source, common::InterfaceList &ifaces, common::ClientContext &ctx)
Definition:
ButtonRemoteFactory.cpp:142
ClientContext.h
Header.
VRPNConnectionCollection.h
Header.
SharedPtr.h
Header to bring shared_ptr into the osvr namespace.
OriginalSource.h
Header.
Eigen::Triplet< double >
OSVR_ClientContextObject
Definition:
ClientContext.h:50
osvr::client::VRPNConnectionCollection
Definition:
VRPNConnectionCollection.h:42
RemoteHandler.h
Header.
osvr::client::ButtonRemoteFactory
Definition:
ButtonRemoteFactory.h:45
Generated by
1.8.12