Storeable::StidLocker Class Reference

Helper class for locking Storeable data when doing Archive operations. More...

#include <storeable.h>

Collaboration diagram for Storeable::StidLocker:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StidLocker (Storeable &pObj, bool pPreserveState=false)
 Constructor.
 ~StidLocker ()
 Destructor.

Detailed Description

Helper class for locking Storeable data when doing Archive operations.

Use it instead of Storeable::lockStid and Storeable::unlockStid. This class should be created on stack.

Deprecated:
use IdLocker instead Example of use:
      Storable a; //new object
      Storeable b = loadFromDatabase(); //object with id
      
      Storeable::StidLocker locker(b);
      b = a; // b still has its id


Constructor & Destructor Documentation

StidLocker Storeable pObj,
bool  pPreserveState = false
 

Constructor.

Parameters:
pObj object to lock
pPreserveState if false object becomes changed, else object will preserve old state

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

Documentation
Quick start
Examples
Search

API Documentation
Class hierarchy
Member index
API Reference
Store filters
Store table macros
Back

Generated by doxygen at Sun Nov 9 02:08:30 2008