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