UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zd_document.hpp
1 /* zd_document.hpp */
2 /* $Id: zd_document.hpp,v 1.4 2007/12/04 13:26:25 vlad Exp $ */
3 #ifndef __zd_document_hpp
4 #define __zd_document_hpp
5 
6 #include "zqb_view.hpp"
7 
8 
16 class ZdDocument : virtual public ZqbAutoName
17 {
18  friend class ZqbView;
19 
20 public:
21 
23  ZdDocument (const char* szName = NULL);
24 
27  virtual ~ZdDocument ();
28 
29 
30  /*
31  * Run-time type identification facility
32  */
33 
55  virtual bool compatibleType (const char* szType) const;
56 
57 
58  /*
59  * Refresh operations for data document and for the view
60  */
61 
65  virtual void updateViews ();
66 
67 
68  /*
69  * State support functionality
70  *
71  * The state of changes is meaningful only for visualization in
72  * View/Doc concept and does not fit for synchronization with
73  * external storage (such as file or database).
74  *
75  */
76 
79  virtual bool isChanged ();
80 
84  virtual void setChanges ();
85 
88  virtual void resetChanges ();
89 
90 protected:
91 
93  ZqbViewVector m_Views;
94 
95 private:
96 
98  bool m_bChanges;
99 
101  static int s_iNameCounter;
102 
104  static char *s_szOwnType;
105 
106 };
107 
108 
109 #endif /* zd_document.hpp */
Definition: zqb_view.hpp:22
virtual ~ZdDocument()
virtual bool isChanged()
ZqbViewVector m_Views
Definition: zd_document.hpp:93
virtual void resetChanges()
ZdDocument(const char *szName=NULL)
virtual bool compatibleType(const char *szType) const
Definition: zd_document.hpp:16
Definition: zqb_autoname.hpp:18
virtual void updateViews()
virtual void setChanges()