0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

string verstion of getFieldDotted

This commit is contained in:
Eliot Horowitz 2010-06-24 10:49:49 -04:00
parent 30b1524a77
commit a5b8c2b7cf

View File

@ -110,6 +110,13 @@ namespace mongo {
supports "." notation to reach into embedded objects
*/
BSONElement getFieldDotted(const char *name) const;
/** return has eoo() true if no match
supports "." notation to reach into embedded objects
*/
BSONElement getFieldDotted(const string& name) const {
return getFieldDotted( name.c_str() );
}
/** Like getFieldDotted(), but expands multikey arrays and returns all matching objects
*/
void getFieldsDotted(const char *name, BSONElementSet &ret ) const;