|
struct | fge::net::rules::ChainedArguments< TValue > |
| This is a wrapper around a Packet and a value for safe extraction. More...
|
enum class | ROutputs : bool { R_NORMAL = false
, R_INVERTED = true
} |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RRange (TValue const &min, TValue const &max, ChainedArguments< TValue > &&args) |
| Range rule, check if the value is in the min/max range.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RRange (TValue const &min, TValue const &max, Packet const &pck, TValue *existingValue=nullptr) |
template<class TValue> |
constexpr ChainedArguments< TValue > | fge::net::rules::RValid (ChainedArguments< TValue > &&args) |
| Valid rule, check if the value is correctly extracted.
|
template<class TValue> |
constexpr ChainedArguments< TValue > | fge::net::rules::RValid (Packet const &pck, TValue *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RMustEqual (TValue const &a, ChainedArguments< TValue > &&args) |
| Must equal rule, check if the value is equal to the provided one.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RMustEqual (TValue const &a, Packet const &pck, TValue *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RStrictLess (TValue less, ChainedArguments< TValue > &&args) |
| Strict less rule, check if the value is strictly lesser than the provided one.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RStrictLess (TValue less, Packet const &pck, TValue *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RLess (TValue less, ChainedArguments< TValue > &&args) |
| Less rule, check if the value is lesser than the provided one.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RLess (TValue less, Packet const &pck, TValue *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RSizeRange (SizeType min, SizeType max, ChainedArguments< TValue > &&args) |
| Size range rule, check if the size is in the min/max range.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RSizeRange (SizeType min, SizeType max, Packet const &pck, TValue *existingValue=nullptr) |
template<class TString> |
constexpr ChainedArguments< TString > | fge::net::rules::RStringRange (SizeType min, SizeType max, Packet const &pck, TString *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RSizeMustEqual (SizeType a, ChainedArguments< TValue > &&args) |
| Size must equal rule, check if the size is equal to the provided one.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RSizeMustEqual (SizeType a, Packet const &pck, TValue *existingValue=nullptr) |
template<class TString> |
constexpr ChainedArguments< TString > | fge::net::rules::RStringMustEqual (SizeType a, Packet const &pck, TString *existingValue=nullptr) |
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RMustValidUtf8 (ChainedArguments< TValue > &&args) |
| Check if the extracted string is a valid UTF8 string.
|
template<class TValue, ROutputs TOutput = ROutputs::R_NORMAL> |
constexpr ChainedArguments< TValue > | fge::net::rules::RMustValidUtf8 (Packet const &pck, TValue *existingValue=nullptr) |
Everything related to network rules.
Network rules are utilities that make sure that the data inside of a packet is valid before extracting and using it.