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 std::vector<std::string> getValues()
const;
85 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);
120 inline bool empty()
const {
121 return _data.empty();
129 inline std::string at(
const size_t index)
const {
130 return _data.at(index);
136 inline size_t size()
const {
140 inline std::string operator[](
const unsigned int i)
const {
143 inline std::string& operator[](
const unsigned int i) {