BlackWhitelistUpdate.h
Go to the documentation of this file.
1#pragma once
2
3#include <RobotAPI/interface/core/BlackWhitelist.h>
4
5#include "BlackWhitelist.h"
6
7namespace armarx
8{
9
10 void updateStringList(std::set<std::string>& list, const StringListUpdate& update);
11
12 inline void
13 updateBlackWhitelist(StringBlackWhitelist& bw, const armarx::BlackWhitelistUpdate& update)
14 {
15 updateStringList(bw.black, update.blacklist);
16 updateStringList(bw.white, update.whitelist);
17 }
18
19} // namespace armarx
std::set< Key > white
If not empty, only these elements are included.
std::set< Key > black
Elements in this list are always excluded.
This file offers overloads of toIce() and fromIce() functions for STL container types.
BlackWhitelist< std::string > StringBlackWhitelist
void updateStringList(std::set< std::string > &list, const StringListUpdate &update)
void updateBlackWhitelist(StringBlackWhitelist &bw, const armarx::BlackWhitelistUpdate &update)