/* * Copyright (c) 2013 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Swift { class SWIFTEN_API PubSubEventItems : public PubSubEventPayload { public: PubSubEventItems(); virtual ~PubSubEventItems(); const std::string& getNode() const { return node; } void setNode(const std::string& value) { this->node = value ; } const std::vector< boost::shared_ptr >& getItems() const { return items; } void setItems(const std::vector< boost::shared_ptr >& value) { this->items = value ; } void addItem(boost::shared_ptr value) { this->items.push_back(value); } const std::vector< boost::shared_ptr >& getRetracts() const { return retracts; } void setRetracts(const std::vector< boost::shared_ptr >& value) { this->retracts = value ; } void addRetract(boost::shared_ptr value) { this->retracts.push_back(value); } private: std::string node; std::vector< boost::shared_ptr > items; std::vector< boost::shared_ptr > retracts; }; }