29 #include "mongo/util/time_support.h"
33 inline BSONObjBuilder& BSONObjBuilderValueStream::operator<<(
const DateNowLabeler&
id) {
35 _fieldName = StringData();
39 inline BSONObjBuilder& BSONObjBuilderValueStream::operator<<(
const NullLabeler&
id) {
41 _fieldName = StringData();
45 inline BSONObjBuilder& BSONObjBuilderValueStream::operator<<(
const UndefinedLabeler&
id) {
46 _builder->appendUndefined(_fieldName);
47 _fieldName = StringData();
52 inline BSONObjBuilder& BSONObjBuilderValueStream::operator<<(
const MinKeyLabeler&
id) {
53 _builder->appendMinKey(_fieldName);
54 _fieldName = StringData();
58 inline BSONObjBuilder& BSONObjBuilderValueStream::operator<<(
const MaxKeyLabeler&
id) {
59 _builder->appendMaxKey(_fieldName);
60 _fieldName = StringData();
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
MONGO_CLIENT_API Date_t MONGO_CLIENT_FUNC jsTime()
Date_t is milliseconds since epoch.
void appendNull()
Implements builder interface but no-op in ObjBuilder.
Definition: bsonobjbuilder.h:453
BSONObjBuilder & appendDate(const StringData &fieldName, Date_t dt)
Append a date.