/// /// \file deviceCollection.h /// \author Jan Chrin, PSI /// \date Release: February 2015 /// \version CAFE 1.0.0 /// #ifndef DEVICECOLLECTION_H #define DEVICECOLLECTION_H #include #include #include #include #include class collectionMember { public: collectionMember():deviceName(""),devicePosition(0){}; virtual ~collectionMember(){}; std::string deviceName; float devicePosition; }; class deviceCollection { friend class Connect; friend class CAFE; //if HAVE_LIBQTXML friend class loadCollectionXMLParser; //endif private: std::string name; std::string description; std::vector cMembers; std::vector attributes; Helper helper; public: deviceCollection():description("collection of devices"){}; virtual ~deviceCollection(){}; std::string getName() const {return name;}; std::string getDescription() const {return description;}; std::vector getCMembers() const {return cMembers;}; std::vector getAttributes() const {return attributes;}; std::vector getPositions() { std::vector posV; posV.clear(); posV.reserve(cMembers.size()); for (size_t i=0; i getMembers() { std::vector memberV; memberV.clear(); memberV.reserve(cMembers.size()); for (size_t i=0; i members; std::vector xmlMembers; std::vector collections; public: deviceGroup(){}; virtual ~deviceGroup(){}; std::string getName() const {return id;}; std::string getID() const {return id;}; std::string getDescription() const {return description;}; std::vector getCMembers() const {return members;}; std::vector getCollections() const {return collections;}; std::vectorgetXMLMembers() const {return xmlMembers;}; }; #endif // DEVICECOLLECTION_H