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