SmartFoxServer 2X C++ API
Sfs2X::Entities::Match::NumberMatch Class Reference

This matcher is used in MatchExpressions to check numeric conditions More...

#include <NumberMatch.h>

Inheritance diagram for Sfs2X::Entities::Match::NumberMatch:
Sfs2X::Entities::Match::IMatcher

Public Member Functions

boost::shared_ptr< string > Symbol ()
 Get the condition symbol of this matcher More...
 
long int Type ()
 Get the type of this matcher More...
 

Static Public Attributes

static boost::shared_ptr< NumberMatchEQUALS
 Checks that Num1 == Num2 More...
 
static boost::shared_ptr< NumberMatchNOT_EQUALS
 Checks that Num1 != Num2 More...
 
static boost::shared_ptr< NumberMatchGREATER_THAN
 Checks that Num1 > Num2 More...
 
static boost::shared_ptr< NumberMatchGREATER_OR_EQUAL_THAN
 Checks that Num1 >= Num2 More...
 
static boost::shared_ptr< NumberMatchLESS_THAN
 Checks that Num1 < Num2 More...
 
static boost::shared_ptr< NumberMatchLESS_OR_EQUAL_THAN
 Checks that Num1 <= Num2 More...
 

Detailed Description

This matcher is used in MatchExpressions to check numeric conditions

See also
MatchExpression

Member Function Documentation

◆ Symbol()

boost::shared_ptr< string > Sfs2X::Entities::Match::NumberMatch::Symbol ( )
virtual

Get the condition symbol of this matcher

Implements Sfs2X::Entities::Match::IMatcher.

◆ Type()

long int Sfs2X::Entities::Match::NumberMatch::Type ( )
virtual

Get the type of this matcher

Implements Sfs2X::Entities::Match::IMatcher.

Member Data Documentation

◆ EQUALS

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::EQUALS
static

Checks that Num1 == Num2

◆ GREATER_OR_EQUAL_THAN

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::GREATER_OR_EQUAL_THAN
static

Checks that Num1 >= Num2

◆ GREATER_THAN

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::GREATER_THAN
static

Checks that Num1 > Num2

◆ LESS_OR_EQUAL_THAN

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::LESS_OR_EQUAL_THAN
static

Checks that Num1 <= Num2

◆ LESS_THAN

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::LESS_THAN
static

Checks that Num1 < Num2

◆ NOT_EQUALS

boost::shared_ptr< NumberMatch > Sfs2X::Entities::Match::NumberMatch::NOT_EQUALS
static

Checks that Num1 != Num2