IDocumentStateComparator.h
Go to the documentation of this file.
1 #ifndef idoc_IDocumentStateComparator_included
2 #define idoc_IDocumentStateComparator_included
3 
4 
5 // ACF includes
6 #include <istd/IChangeable.h>
7 
8 
9 namespace idoc
10 {
11 
12 
17 {
18 public:
20  {
33  };
34 
38  virtual bool HasStoredDocumentState() const = 0;
42  virtual bool StoreDocumentState() = 0;
46  virtual bool RestoreDocumentState() = 0;
50  virtual DocumentChangeFlag GetDocumentChangeFlag() const = 0;
51 };
52 
53 
54 } // namespace idoc
55 
56 
57 #endif // !idoc_IDocumentStateComparator_included
58 
59 
Current document state equals the stored one.
Allows to store some document state used as reference for comarision.
virtual DocumentChangeFlag GetDocumentChangeFlag() const =0
Check if document state is the same as stored state.
There is no information about document change.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual bool StoreDocumentState()=0
Store state of some document.
virtual bool HasStoredDocumentState() const =0
Check if there is stored document available.
Current document state equals the stored one.
virtual bool RestoreDocumentState()=0
Restore last stored document state.

© 2007-2017 Witold Gantzke and Kirill Lepskiy