WPILibC++  2018.4.1-20180821013237-1172-g8d8f120
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
CameraServerShared.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <memory>
11 #include <thread>
12 #include <utility>
13 
14 #include <wpi/Twine.h>
15 
16 namespace frc {
18  public:
19  virtual void ReportUsbCamera(int id) = 0;
20  virtual void ReportAxisCamera(int id) = 0;
21  virtual void ReportVideoServer(int id) = 0;
22  virtual void SetCameraServerError(const wpi::Twine& error) = 0;
23  virtual void SetVisionRunnerError(const wpi::Twine& error) = 0;
24  virtual void ReportDriverStationError(const wpi::Twine& error) = 0;
25  virtual std::pair<std::thread::id, bool> GetRobotMainThreadId() const = 0;
26 };
27 
28 void SetCameraServerShared(std::unique_ptr<CameraServerShared> shared);
29 CameraServerShared* GetCameraServerShared();
30 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Definition: CameraServerShared.h:17
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79