40 #include <boost/regex.hpp> 48 std::vector<std::string>& names)
const 52 std::vector<std::string> fnames;
53 boost::regex
r(regex);
54 for (std::size_t i = 0; i < names.size(); ++i)
57 if (boost::regex_match(names[i].c_str(), match, r))
58 fnames.push_back(names[i]);
64 static std::unique_ptr<warehouse_ros::DatabaseLoader>
dbloader;
MoveItMessageStorage(warehouse_ros::DatabaseConnection::Ptr conn)
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been ini...
void filterNames(const std::string ®ex, std::vector< std::string > &names) const
Keep only the names that match regex.
warehouse_ros::DatabaseConnection::Ptr loadDatabase()
Load a database connection.
static std::unique_ptr< warehouse_ros::DatabaseLoader > dbloader