OSVR-Core
DeviceConstructionData.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_DeviceConstructionData_h_GUID_D54DE33A_8EF1_41AB_4537_4CE726C9EF0E
26 #define INCLUDED_DeviceConstructionData_h_GUID_D54DE33A_8EF1_41AB_4537_4CE726C9EF0E
27 
28 // Internal Includes
30 
31 // Library/third-party includes
32 #include <vrpn_Connection.h>
33 #include <boost/noncopyable.hpp>
34 
35 // Standard includes
36 // - none
37 
38 namespace osvr {
39 namespace connection {
40  class vrpn_BaseFlexServer;
41  class DeviceConstructionData : boost::noncopyable {
42  public:
44  vrpn_Connection *connection)
45  : obj(initObject), conn(connection), flexServer(nullptr) {}
46  std::string getQualifiedName() const { return obj.getQualifiedName(); }
47  DeviceInitObject &obj;
48  vrpn_Connection *conn;
49  vrpn_BaseFlexServer *flexServer;
50  };
51 } // namespace connection
52 } // namespace osvr
53 
54 #endif // INCLUDED_DeviceConstructionData_h_GUID_D54DE33A_8EF1_41AB_4537_4CE726C9EF0E
Basic implementation of a vrpn_BaseClass server.
Definition: VrpnBaseFlexServer.h:43
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Structure used internally to construct the desired type of device.
Definition: DeviceInitObject.h:59
Definition: DeviceConstructionData.h:41
std::string getQualifiedName() const
Get device name qualified by plugin name.
Definition: DeviceInitObject.cpp:118