mongo::LastError Struct Reference

#include <lasterror.h>

List of all members.

Classes

struct  Disabled

Public Types

enum  UpdatedExistingType { NotUpdate, True, False }

Public Member Functions

bool appendSelf (BSONObjBuilder &b, bool blankErr=true)
 LastError ()
void raiseError (int _code, const char *_msg)
void recordDelete (long long nDeleted)
void recordUpdate (bool _updateObjects, long long _nObjects, OID _upsertedId)
void reset (bool _valid=false)
void writeback (OID &oid)

Public Attributes

int code
bool disabled
string msg
long long nObjects
int nPrev
enum
mongo::LastError::UpdatedExistingType 
updatedExisting
OID upsertedId
bool valid
OID writebackId

Static Public Attributes

static LastError noError

Detailed Description

Definition at line 26 of file lasterror.h.


Member Enumeration Documentation

Enumerator:
NotUpdate 
True 
False 

Definition at line 29 of file lasterror.h.


Constructor & Destructor Documentation

mongo::LastError::LastError (  )  [inline]

Definition at line 57 of file lasterror.h.


Member Function Documentation

bool mongo::LastError::appendSelf ( BSONObjBuilder b,
bool  blankErr = true 
)
Returns:
if there is an err
void mongo::LastError::raiseError ( int  _code,
const char *  _msg 
) [inline]

Definition at line 40 of file lasterror.h.

void mongo::LastError::recordDelete ( long long  nDeleted  )  [inline]

Definition at line 53 of file lasterror.h.

void mongo::LastError::recordUpdate ( bool  _updateObjects,
long long  _nObjects,
OID  _upsertedId 
) [inline]

Definition at line 45 of file lasterror.h.

void mongo::LastError::reset ( bool  _valid = false  )  [inline]

Definition at line 60 of file lasterror.h.

void mongo::LastError::writeback ( OID oid  )  [inline]

Definition at line 36 of file lasterror.h.


Member Data Documentation

Definition at line 27 of file lasterror.h.

Definition at line 35 of file lasterror.h.

Definition at line 28 of file lasterror.h.

Definition at line 32 of file lasterror.h.

Definition at line 98 of file lasterror.h.

Definition at line 33 of file lasterror.h.

Definition at line 30 of file lasterror.h.

Definition at line 34 of file lasterror.h.

Definition at line 31 of file lasterror.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:55 2013