3
* ====================================================================
4
* Licensed to the Apache Software Foundation (ASF) under one
5
* or more contributor license agreements. See the NOTICE file
6
* distributed with this work for additional information
7
* regarding copyright ownership. The ASF licenses this file
8
* to you under the Apache License, Version 2.0 (the
9
* "License"); you may not use this file except in compliance
10
* with the License. You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing,
15
* software distributed under the License is distributed on an
16
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
* KIND, either express or implied. See the License for the
18
* specific language governing permissions and limitations
20
* ====================================================================
25
#error "This is a C++ header file."
28
#ifndef SVN_CXXHL_TRISTATE_HPP
29
#define SVN_CXXHL_TRISTATE_HPP
31
namespace subversion {
33
namespace version_1_9_dev {
38
static const tristate TRUE;
39
static const tristate FALSE;
40
static const tristate UNKNOWN;
42
tristate(const tristate& that) throw()
43
: m_value(that.m_value)
46
bool operator==(const tristate& that) const throw()
47
{ return m_value == that.m_value; }
49
bool operator!=(const tristate& that) const throw()
50
{ return !(*this == that); }
52
bool known() const throw()
53
{ return *this != UNKNOWN; }
56
explicit tristate(short int value) throw();
60
} // namespace version_1_9_dev
62
} // namespace subversion
64
#endif // SVN_CXXHL_TRISTATE_HPP