ActiveWindowFeature Class Reference

#include <ActiveWindow.h>

Inheritance diagram for ActiveWindowFeature:

AbstractStringFeature PersistantFeature Feature List of all members.

Public Member Functions

virtual const string getName () const
virtual string toString () const

Protected Member Functions

 ActiveWindowFeature (stringcode *code, long *maxlen)
 ActiveWindowFeature (stringcode *code, long *maxlen, string window)

Friends

class ActiveWindowFeatureProvider

Detailed Description

Returns the application with focus

This feature tracks the application with focus on the users desktop and returns the name active application. It is based on the AbstractStringFeature and uses the Levenshtein distance.


Constructor & Destructor Documentation

ActiveWindowFeature::ActiveWindowFeature stringcode code,
long *  maxlen
[inline, protected]
 

Feature constructor

This constructor initializes the feature as prototypes value. For creating a specific sample of a feature, the sample constructor should be used.

Parameters:
code A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the code table.
maxlen A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum string length.

ActiveWindowFeature::ActiveWindowFeature stringcode code,
long *  maxlen,
string  window
[inline, protected]
 

Sample constructor

This constructor initializes the feature with a specific value and should thus be used for samples.

Parameters:
code A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the code table.
maxlen A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum string length.
window The string representation of the sample value.


Member Function Documentation

virtual const string ActiveWindowFeature::getName  )  const [inline, virtual]
 

Query a features name

Returns:
Name of the Feature in the format "Featureprovider.Feature"

Reimplemented from AbstractStringFeature.

string ActiveWindowFeature::toString  )  const [virtual]
 

Get feature as string

Note:
This is only for testing.
Returns:
Feature as string.

Reimplemented from AbstractStringFeature.


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 10:20:49 2006 for Intelligence.kdevelop by  doxygen 1.4.6