PersistantFeature Class Reference

#include <Feature.h>

Inheritance diagram for PersistantFeature:

Feature AbstractStringFeature NumericalContinuousFeature NumericalDiscreteFeature TimeFeature AbstractStringListFeature ActiveWindowFeature GSMCellFeature WlanActiveEssidFeature WlanActiveMacAddressFeature AudioBandFeature AudioMeanFeature WlanActiveSignalLevelFeature AudioPeakFeature BluetoothNumPeersFeature WlanNumPeersFeature List of all members.

Public Member Functions

virtual featureparams write () const =0
virtual void read (featureparams *param)=0
void invalidate ()
void validate ()
bool isValid ()

Protected Member Functions

 PersistantFeature ()

Detailed Description

PersistantFeature interface

This interface only enhances the Feature interface by methods to handle persistant data of a feature. It sets the externalization flag to true.

See also:
externalize


Constructor & Destructor Documentation

PersistantFeature::PersistantFeature  )  [inline, protected]
 

Default constructor

Sets the externalization flag and the validation flag to true.

See also:
externalize

valid


Member Function Documentation

void PersistantFeature::invalidate  )  [inline]
 

Invalidate feature

Sets the validation flag to flase to signal the framework that the corresponding persistant feature data is not up to date and has to be written again.

bool PersistantFeature::isValid  )  [inline]
 

Query validation flag

Returns:
true if the features persistant data is up to date, false otherwise.

virtual void PersistantFeature::read featureparams param  )  [pure virtual]
 

Load feature from persistant data

Initializes the persistant feature data from the given representation.

Parameters:
param Persistant feature data.
See also:
write

Implemented in AbstractStringFeature, NumericalDiscreteFeature, NumericalContinuousFeature, and TimeFeature.

void PersistantFeature::validate  )  [inline]
 

Set the validation flag to true

virtual featureparams PersistantFeature::write  )  const [pure virtual]
 

Externalize feature

Returns:
Persistant feature data.
See also:
read

Implemented in AbstractStringFeature, NumericalDiscreteFeature, NumericalContinuousFeature, and TimeFeature.


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