ICF 3.0.5.47
Technical documentation of ICF Libraries
IDocumentStateComparator.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
10#include <istd/IChangeable.h>
11
12
13namespace idoc
14{
15
16
21{
22public:
38
42 virtual bool HasStoredDocumentState() const = 0;
46 virtual bool StoreDocumentState() = 0;
50 virtual bool RestoreDocumentState() = 0;
55};
56
57
58} // namespace idoc
59
60
Allows to store some document state used as reference for comarision.
virtual bool HasStoredDocumentState() const =0
Check if there is stored document available.
virtual bool RestoreDocumentState()=0
Restore last stored document state.
virtual DocumentChangeFlag GetDocumentChangeFlag() const =0
Check if document state is the same as stored state.
@ DCF_DIFFERENT
Current document state equals the stored one.
@ DCF_UNKNOWN
There is no information about document change.
@ DCF_EQUAL
Current document state equals the stored one.
virtual bool StoreDocumentState()=0
Store state of some document.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains the system indenendent basic implementations of Document/View design pattern.

© Witold Gantzke and Kirill Lepskiy