MockInputComponent.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_TESTING_MOCKINPUTCOMPONENT_H
17 #define SURGSIM_TESTING_MOCKINPUTCOMPONENT_H
18 
21 
22 namespace SurgSim
23 {
24 namespace Testing
25 {
26 
30 {
31 public:
34  explicit MockInputComponent(const std::string& name);
35 
39 };
40 
41 };
42 };
43 #endif // SURGSIM_TESTING_MOCKINPUTCOMPONENT_H
SurgSim::Input::InputComponent
InputComponents connect devices to SceneElements, facilitating data transfer from a device to SceneEl...
Definition: InputComponent.h:38
SurgSim::Testing::MockInputComponent::MockInputComponent
MockInputComponent(const std::string &name)
Constructor.
Definition: MockInputComponent.cpp:25
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::DataStructures::DataGroup
A collection of NamedData objects.
Definition: DataGroup.h:68
SurgSim::Testing::MockInputComponent
A MockInputComponent allows Components to test connections with devices without using an instance of ...
Definition: MockInputComponent.h:29
InputComponent.h
DataGroup.h
SurgSim::Testing::MockInputComponent::setData
void setData(const SurgSim::DataStructures::DataGroup &data)
Set the data that this mock InputComponent will provide via getData.
Definition: MockInputComponent.cpp:29
string
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38