blob: de6ac82e28481b33f08674e70fd25c47970216df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "isourceselector.h"
namespace search::queryeval {
ISourceSelector::ISourceSelector(Source defaultSource) :
_baseId(0),
_defaultSource(defaultSource)
{
assert(defaultSource < SOURCE_LIMIT);
}
void
ISourceSelector::setDefaultSource(Source source)
{
assert(source < SOURCE_LIMIT);
assert(source >= _defaultSource);
_defaultSource = source;
}
}
|