Ginga  0.13.6
 All Classes Namespaces Functions Variables
Static Public Member Functions | Static Public Attributes | List of all members
br::pucrio::telemidia::ncl::util::Comparator Class Reference

Static Public Member Functions

static bool evaluate (string first, string second, short comparator)
 
static bool evaluate (float first, float second, short comparator)
 
static string toString (short comparator)
 
static short fromString (string comp)
 

Static Public Attributes

static const short CMP_EQ = 0
 
static const short CMP_NE = 1
 
static const short CMP_LT = 2
 
static const short CMP_LTE = 3
 
static const short CMP_GT = 4
 
static const short CMP_GTE = 5
 

Member Function Documentation

string br::pucrio::telemidia::ncl::util::Comparator::toString ( short  comparator)
static

This method returns a string representing one comparator.

Parameters
comparatorthe comparator to be transformed in string.
Returns
a string representing one comparator.

Member Data Documentation

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_EQ = 0
static

Constant that represents an equality.

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_GT = 4
static

Constant that represents something is bigger than other thing.

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_GTE = 5
static

Constant that represents something is bigger (or equal) than other thing.

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_LT = 2
static

Constant that represents something is smaller than other thing.

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_LTE = 3
static

Constant that represents something is smaller (or equal) than other thing.

const short br::pucrio::telemidia::ncl::util::Comparator::CMP_NE = 1
static

Constant that represents a disequality.


The documentation for this class was generated from the following files: