21 #ifndef PROPERTYCOLLECTION_H
22 #define PROPERTYCOLLECTION_H
27 #include <tulip/tulipconf.h>
37 class TLP_SCOPE PropertiesCollection {
38 std::vector<std::string> _props;
39 std::vector<std::string> _selected;
45 PropertiesCollection() {}
54 explicit PropertiesCollection(
const Graph *graph,
bool selectViewProperties =
false);
59 const std::vector<std::string> &getProperties()
const {
66 const std::vector<std::string> &getSelected()
const {
73 std::vector<std::string> getUnselected()
const;
81 bool setSelected(
const std::vector<std::string> &selected);
88 void push_back(
const std::string &element) {
89 _props.push_back(element);
95 inline bool empty()
const {
96 return _props.empty();
102 inline bool emptySelected()
const {
103 return _selected.empty();