21 #ifndef STRINGCOLLECTION_H 22 #define STRINGCOLLECTION_H 27 #include <tulip/tulipconf.h> 35 class TLP_SCOPE StringCollection {
37 std::vector<std::string> _data;
52 explicit StringCollection(
const std::vector<std::string> &vectorParam);
59 explicit StringCollection(
const std::string ¶m);
67 StringCollection(
const std::vector<std::string>& vectorParam,
const int currentParam);
75 StringCollection(
const std::vector<std::string>& vectorParam,
const std::string ¤tString);
80 const std::vector<std::string>& getValues()
const;
85 const std::string& getCurrentString()
const;
93 bool setCurrent(
const unsigned int param);
101 bool setCurrent(
const std::string param);
106 int getCurrent()
const;
113 void push_back(
const std::string& element) {
114 _data.push_back(element);
121 inline void insert(
const tlp::StringCollection& str) {
122 _data.insert(_data.end(), str._data.begin(), str._data.end());
128 inline bool empty()
const {
129 return _data.empty();
143 inline std::string at(
const size_t index)
const {
144 return _data.at(index);
150 inline size_t size()
const {
154 inline std::string operator[](
const unsigned int i)
const {
157 inline std::string& operator[](
const unsigned int i) {