IVersionInfo.h
Go to the documentation of this file.
1 #ifndef iser_IVersionInfo_included
2 #define iser_IVersionInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QSet>
8 
9 // ACF includes
10 #include <istd/IChangeable.h>
11 
12 
13 namespace iser
14 {
15 
16 
22 class IVersionInfo: virtual public istd::IChangeable
23 {
24 public:
31  enum VersionId
32  {
34  QtVersionId = 1023,
36  };
37 
38  enum{
42  UnknownVersion = 0xffffffff
43  };
44 
45  typedef QSet<int> VersionIds;
46 
50  virtual VersionIds GetVersionIds() const = 0;
51 
60  virtual bool GetVersionNumber(int versionId, quint32& result) const = 0;
61 
68  virtual QString GetVersionIdDescription(int versionId) const = 0;
69 
73  virtual QString GetEncodedVersionName(int versionId, quint32 versionNumber) const = 0;
74 };
75 
76 
77 } // namespace iser
78 
79 
80 #endif // !iser_IVersionInfo_included
81 
82 
QSet< int > VersionIds
Definition: IVersionInfo.h:45
Provides access to version information.
Definition: IVersionInfo.h:22
Biggest version value used if no version is needed or known.
Definition: IVersionInfo.h:42
virtual QString GetVersionIdDescription(int versionId) const =0
Get description of version ID.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual VersionIds GetVersionIds() const =0
Get list of version ID's.
virtual bool GetVersionNumber(int versionId, quint32 &result) const =0
Get version of archived stream for specific versioning type.
virtual QString GetEncodedVersionName(int versionId, quint32 versionNumber) const =0
Encode version number to human readable form.
VersionId
Type of version.
Definition: IVersionInfo.h:31

© 2007-2017 Witold Gantzke and Kirill Lepskiy