VariableContent Class Reference

#include <varabled.h>

Inheritance diagram for VariableContent:
ELIST_LINK

List of all members.

Public Member Functions

 VariableContent ()
 VariableContent (STRING_VARIABLE *it)
 VariableContent (INT_VARIABLE *it)
 VariableContent (BOOL_VARIABLE *it)
 VariableContent (double_VARIABLE *it)
void SetValue (const char *val)
const char * GetValue () const
const char * GetName () const
const char * GetDescription () const
int GetId ()
bool HasChanged ()

Static Public Member Functions

static int Compare (const void *v1, const void *v2)
static VariableContentGetVariableContentById (int id)

Detailed Description

A rather hackish helper structure which can take any kind of variable input (defined by VarType) and do a couple of common operations on them, like comparisond or getting its value. It is used in the context of the VariablesEditor as a bridge from the internal tesseract variables to the ones displayed by the ScrollView server.


Constructor & Destructor Documentation

VariableContent::VariableContent (  )  [inline]

Constructors for the various VarTypes.

VariableContent::VariableContent ( STRING_VARIABLE it  ) 
VariableContent::VariableContent ( INT_VARIABLE it  ) 
VariableContent::VariableContent ( BOOL_VARIABLE it  ) 
VariableContent::VariableContent ( double_VARIABLE it  ) 

Member Function Documentation

int VariableContent::Compare ( const void *  v1,
const void *  v2 
) [static]

Compare two VC objects by their name.

const char * VariableContent::GetDescription (  )  const
int VariableContent::GetId (  )  [inline]
const char * VariableContent::GetName (  )  const
const char * VariableContent::GetValue (  )  const
VariableContent * VariableContent::GetVariableContentById ( int  id  )  [static]

Gets a VC object identified by its ID.

bool VariableContent::HasChanged (  )  [inline]
void VariableContent::SetValue ( const char *  val  ) 

Getters and Setters.


The documentation for this class was generated from the following files:
Generated on Sun Jul 18 17:11:17 2010 for Tesseract by  doxygen 1.6.3