using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Tor.Config
{
///
/// An enumerator containing the different validation methods to perform against a configuration value.
///
[Flags]
internal enum ConfigurationValidation : int
{
///
/// No validation should be performed.
///
None = 0x000,
///
/// Ensure that the value is not null.
///
NonNull = 0x001,
///
/// Ensure that the value is non-negative.
///
NonNegative = 0x002,
///
/// Ensure that the value is non-zero.
///
NonZero = 0x004,
///
/// Ensure that the value falls within the range of valid port numbers.
///
PortRange = 0x008,
///
/// Ensure that the value is divisible by 1024.
///
SizeDivision = 0x010,
///
/// Ensure that the value is positive and non-zero.
///
Positive = NonNegative | NonZero
}
}