- vector<string> namesOfGroups;
- map<string, int> groupIndex; //groupname, vectorIndex in namesOfGroups. - used by collectdisplays.
+ vector<string> getNamesOfGroups() {
+ sort(namesOfGroups.begin(), namesOfGroups.end());
+ groupIndex.clear();
+ for (int i = 0; i < namesOfGroups.size(); i++) { groupIndex[namesOfGroups[i]] = i; }
+ return namesOfGroups;
+ }
+ void setNamesOfGroups(vector<string> sn) { namesOfGroups = sn; }
+ map<string, int> groupIndex; //groupname, vectorIndex in namesOfGroups. - used by collectdisplays and libshuff commands.