18 lines
348 B
C++
18 lines
348 B
C++
#ifndef __MSC_REV_RANGE_HPP__
|
|
#define __MSC_REV_RANGE_HPP__
|
|
|
|
#include <cstdint>
|
|
struct MscRevisionRange
|
|
{
|
|
uint16_t minRevision;
|
|
uint16_t maxRevision;
|
|
|
|
/// Check provided revision to be in range
|
|
bool isSatisfied(uint16_t rev) const
|
|
{
|
|
return rev >= this->minRevision && rev <= this->maxRevision;
|
|
}
|
|
};
|
|
|
|
#endif // __MSC_REV_RANGE_HPP__
|