mongo::GridFile Class Reference
#include <gridfs.h>
List of all members.
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.
int mongo::GridFile::getChunkSize |
( |
|
) |
[inline] |
string mongo::GridFile::getContentType |
( |
|
) |
[inline] |
BSONElement mongo::GridFile::getFileField |
( |
const string & |
name |
) |
[inline] |
string mongo::GridFile::getFilename |
( |
|
) |
[inline] |
string mongo::GridFile::getMD5 |
( |
|
) |
[inline] |
BSONObj mongo::GridFile::getMetadata |
( |
|
) |
|
int mongo::GridFile::getNumChunks |
( |
|
) |
[inline] |
Date_t mongo::GridFile::getUploadDate |
( |
|
) |
[inline] |
write the file to this filename
write the file to the output stream
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: