1//
2// Range.cpp
3//
4// Library: Data
5// Package: DataCore
6// Module: Range
7//
8// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Data/Range.h"
16#include "Poco/Data/DataException.h"
17
18
19namespace Poco {
20namespace Data {
21
22
23using namespace Keywords;
24
25
26Range::Range(Limit::SizeT lowValue, Limit::SizeT upValue, bool hardLimit) :
27 _lower(lowerLimit(lowValue)),
28 _upper(upperLimit(upValue, hardLimit))
29{
30 if (lowValue > upValue)
31 throw LimitException("lowerLimit > upperLimit!");
32}
33
34
35Range::~Range()
36{
37}
38
39
40} } // namespace Poco::Data
41