mongo::GridFile Class Reference

#include <gridfs.h>

List of all members.

Public Member Functions

bool exists ()
GridFSChunk getChunk (int n)
int getChunkSize ()
gridfs_offset getContentLength ()
string getContentType ()
BSONElement getFileField (const string &name)
string getFilename ()
string getMD5 ()
BSONObj getMetadata ()
int getNumChunks ()
Date_t getUploadDate ()
gridfs_offset write (const string &where)
gridfs_offset write (ostream &out)

Private Member Functions

void _exists ()
 GridFile (GridFS *grid, BSONObj obj)

Private Attributes

GridFS_grid
BSONObj _obj

Friends

class GridFS

Detailed Description

wrapper for a file stored in the Mongo database

Definition at line 137 of file gridfs.h.


Constructor & Destructor Documentation

mongo::GridFile::GridFile ( GridFS grid,
BSONObj  obj 
) [private]

Member Function Documentation

void mongo::GridFile::_exists (  )  [private]
bool mongo::GridFile::exists (  )  [inline]
Returns:
whether or not this file exists findFile will always return a GriFile, so need to check this

Definition at line 143 of file gridfs.h.

GridFSChunk mongo::GridFile::getChunk ( int  n  ) 
int mongo::GridFile::getChunkSize (  )  [inline]

Definition at line 151 of file gridfs.h.

gridfs_offset mongo::GridFile::getContentLength (  )  [inline]

Definition at line 155 of file gridfs.h.

string mongo::GridFile::getContentType (  )  [inline]

Definition at line 159 of file gridfs.h.

BSONElement mongo::GridFile::getFileField ( const string &  name  )  [inline]

Definition at line 171 of file gridfs.h.

string mongo::GridFile::getFilename (  )  [inline]

Definition at line 147 of file gridfs.h.

string mongo::GridFile::getMD5 (  )  [inline]

Definition at line 167 of file gridfs.h.

BSONObj mongo::GridFile::getMetadata (  ) 
int mongo::GridFile::getNumChunks (  )  [inline]

Definition at line 177 of file gridfs.h.

Date_t mongo::GridFile::getUploadDate (  )  [inline]

Definition at line 163 of file gridfs.h.

gridfs_offset mongo::GridFile::write ( const string &  where  ) 

write the file to this filename

gridfs_offset mongo::GridFile::write ( ostream &  out  ) 

write the file to the output stream


Friends And Related Function Documentation

friend class GridFS [friend]

Definition at line 201 of file gridfs.h.


Member Data Documentation

Definition at line 198 of file gridfs.h.

Definition at line 199 of file gridfs.h.


The documentation for this class 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