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 class IRevision : public IRef
20 {
21 public:
22  /// Check object changed (true if changed)
23  virtual bool wasChanged(unsigned int rev) const = 0;
24 
25  /// Increment object revision
26  virtual unsigned int incRevision() = 0;
27 
28  /// Get object revision
29  virtual unsigned int getRevision() const = 0;
30 };
31 
32 } } } // namespace artec::sdk::base
33 
34 #endif // _IREVISION_H_
virtual bool wasChanged(unsigned int rev) const =0
Check object changed (true if changed)
virtual unsigned int incRevision()=0
Increment object revision.
virtual unsigned int getRevision() const =0
Get object revision.