Name sorting provides functionalities to reorder vectors by names (www.stiima.cnr.it)
bool permutationName( const std::vector<std::string>& order_names,
std::vector<std::string>& names,
std::vector<double>& vector1,
std::vector<double>& vector2,
std::vector<double>& vector3);
bool permutationName( const std::vector<std::string>& order_names,
std::vector<std::string>& names,
std::vector<double>& vector1,
std::vector<double>& vector2);
bool permutationName( const std::vector<std::string>& order_names,
std::vector<std::string>& names,
std::vector<double>& vector1);
order_names names in the desired order
names current order of names
vector1, vector2, vector3 vectors to be reordered
Software License Agreement (BSD License)
Copyright (c) 2010, National Research Council of Italy, Institute of Intelligent Industrial Technologies and Systems for Advanced Manufacturing
All rights reserved.