21 #ifndef STRINGCOLLECTION_H
22 #define STRINGCOLLECTION_H
26 #include "tulipconf.h"
35 struct TLP_SCOPE StringCollection {
39 std::vector<std::string> _data;
53 explicit StringCollection(
const std::vector<std::string> &vectorParam);
60 StringCollection(
const std::string param);
68 StringCollection(
const std::vector<std::string>& vectorParam,
int currentParam);
76 StringCollection(
const std::vector<std::string>& vectorParam, std::string currentString);
81 std::vector<std::string> getValues()
const;
86 std::string getCurrentString();
94 bool setCurrent(
unsigned int param);
102 bool setCurrent(std::string param);
114 void push_back(
const std::string& element) {
115 _data.push_back(element);
121 inline bool empty() {
122 return _data.empty();
130 inline std::string at(
size_t index) {
131 return _data.at(index);
137 inline size_t size() {
141 inline std::string operator[](
const unsigned int i)
const {
144 inline std::string& operator[](
const unsigned int i) {