pwfengine
Public Member Functions
PWrapperCache Class Reference

A private class that offers the cache system for a given wrapper. More...

#include <PWrapperCache.h>

List of all members.

Public Member Functions

 PWrapperCache (PWrapper *wrapper, PWrapperCache *upperCache=0)
QString schemaName ()
QString elementValue (PSchemaElement elementSchema)
void setElementValue (PSchemaElement elementSchema, QString value)

Detailed Description

A private class that offers the cache system for a given wrapper.

Each element is cached by storing its parsed value together with the hashed string representation of its schema, this last used to retrieve the value later.


Member Function Documentation

QString PWrapperCache::elementValue ( PSchemaElement  elementSchema)

The element schema string representation is hashed and compared to the ones saved in the cache.

Returns:
empty string if not found.
QString PWrapperCache::schemaName ( )
Returns:
the cached schema name, empty if not exists.
void PWrapperCache::setElementValue ( PSchemaElement  elementSchema,
QString  value 
)

The element is cached by storing its value together with the hashed string representation of its schema


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator