/*----------------------------------------------------------------------------*/ /* Copyright (c) 2016-2017 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ #pragma once #include #include namespace frc { template inline cs::AxisCamera CameraServer::AddAxisCamera( std::initializer_list hosts) { return AddAxisCamera("Axis Camera", hosts); } template inline cs::AxisCamera CameraServer::AddAxisCamera( llvm::StringRef name, std::initializer_list hosts) { std::vector vec; vec.reserve(hosts.size()); for (const auto& host : hosts) vec.emplace_back(host); return AddAxisCamera(name, vec); } } // namespace frc