SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::cmp_tokens Class Reference

General purpose line comparator. More...

Public Types

enum  CRes { C_LT =0, C_EQ =1, C_GT =2 }
 
typedef CRes(* Ord_t )(rowpair &rp)
 

Public Member Functions

 cmp_tokens ()
 Constructor.
 
void set_commentsfirst (const bool b)
 Treat comment lines specially.
 
cmp_tokensadd_key (const size_t column, const Ord_t o, const bool reverse)
 Add a column.
 
const std::set< size_t > & get_columns () const
 
const std::vector< size_t > & get_columnsv () const
 
bool operator() (const char *const c0, const char *const c1)
 Comparison operator for C strings.
 
bool operator() (const std::string &s0, const std::string &s1)
 Comparison operator for std::string.
 

Static Public Member Functions

static CRes c_ign (rowpair &rp)
 Do not compare, but advance to the next column.
 
static CRes c_text (rowpair &rp)
 Compare text.
 
static CRes c_uint (rowpair &rp)
 Compare unsigned integers.
 
static CRes c_int (rowpair &rp)
 Compare signed integers.
 
static CRes c_ufloat (rowpair &rp)
 Compare unsigned floating point values.
 
static CRes c_float (rowpair &rp)
 Compare signed floating point values.
 

Detailed Description

General purpose line comparator.


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