RobotsIO
Loading...
Searching...
No Matches
ProbeContainer.cpp
1/*
2 * Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#include <RobotsIO/Utils/ProbeContainer.h>
9
10using namespace RobotsIO::Utils;
11
12
13ProbeContainer::~ProbeContainer()
14{}
15
16
17bool ProbeContainer::is_probe(const std::string& name) const
18{
19 return (probes_.find(name) != probes_.end());
20}
21
22
23Probe& ProbeContainer::get_probe(const std::string& name) const
24{
25 return *(probes_.at(name));
26}
27
28void ProbeContainer::set_probe(const std::string& name, std::unique_ptr<Probe> probe)
29{
30 probes_[name] = std::move(probe);
31}