Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
mozStorageStatementScoper Class Reference

This class wraps a statement so that it is guaraneed to be reset when this object goes out of scope. More...

#include <mozStorageHelper.h>

Collaboration diagram for mozStorageStatementScoper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mozStorageStatementScoper (mozIStorageStatement *aStatement)
 ~mozStorageStatementScoper ()
void Abandon ()
 Call this to make the statement not reset.

Protected Attributes

nsCOMPtr< mozIStorageStatementmStatement

Detailed Description

This class wraps a statement so that it is guaraneed to be reset when this object goes out of scope.

Note that this always just resets the statement. If the statement doesn't need resetting, the reset operation is inexpensive.

Definition at line 150 of file mozStorageHelper.h.


Constructor & Destructor Documentation

Definition at line 153 of file mozStorageHelper.h.

      : mStatement(aStatement)
  {
  }

Definition at line 157 of file mozStorageHelper.h.

  {
    if (mStatement)
      mStatement->Reset();
  }

Member Function Documentation

Call this to make the statement not reset.

You might do this if you know that the statement has been reset.

Definition at line 167 of file mozStorageHelper.h.


Member Data Documentation

Definition at line 173 of file mozStorageHelper.h.


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