| #pragma once |
| |
| #ifndef TPERSISTSET_H |
| #define TPERSISTSET_H |
| |
| |
| #include "tpersist.h" |
| |
| |
| #include <vector> |
| |
| #include <memory> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| class DVAPI TPersistSet final : public TPersist { |
| PERSIST_DECLARATION(TPersistSet) |
| |
| std::vector<TPersist *> m_objects; |
| |
| public: |
| ~TPersistSet(); |
| |
| const std::vector<TPersist *> &objects() const { |
| return m_objects; |
| } |
| |
| void insert(std::unique_ptr<TPersist> |
| object); |
| |
| public: |
| void saveData(TOStream &os) override; |
| void loadData(TIStream &is) override; |
| }; |
| |
| #endif |