Artec 3D Scanning SDK  2.0
IRevision.h
Go to the documentation of this file.
1 /********************************************************************
2 *
3 * Project Artec 3D Scanning SDK
4 *
5 * Purpose: Reference counting. Base class for all interfaces.
6 *
7 * Copyright: Artec Group
8 *
9 ********************************************************************/
10 
11 #ifndef _IREVISION_H_
12 #define _IREVISION_H_
13 
14 #include <artec/sdk/base/IRef.h>
15 
16 namespace artec { namespace sdk { namespace base
17 {
18 
19 /**
20 * Interface to retrieve the object's revision history
21 * It can be used to create change history. It is used in IMesh.
22 */
23 
24 class IRevision : public IRef
25 {
26 public:
27  /// Check whether the object was changed (true if changed)
28  virtual bool wasChanged(unsigned int rev) const = 0;
29 
30  /// Increment object's revision
31  virtual unsigned int incRevision() = 0;
32 
33  /// Get object's revision
34  virtual unsigned int getRevision() const = 0;
35 };
36 
37 } } } // namespace artec::sdk::base
38 
39 #endif // _IREVISION_H_
virtual unsigned int incRevision()=0
Increment object's revision.
virtual bool wasChanged(unsigned int rev) const =0
Check whether the object was changed (true if changed)
Interface to retrieve the object's revision history It can be used to create change history...
Definition: IRevision.h:24
virtual unsigned int getRevision() const =0
Get object's revision.
Interface that implements reference counting and life-time management.
Definition: IRef.h:22