22 #include <bsoncxx/document/view_or_value.hpp> 23 #include <bsoncxx/stdx/optional.hpp> 24 #include <mongocxx/stdx.hpp> 26 #include <mongocxx/config/prelude.hpp> 29 MONGOCXX_INLINE_NAMESPACE_BEGIN
89 k_secondary_preferred,
195 stdx::optional<
bsoncxx::document::view> tags() const;
234 stdx::optional<
std::chrono::seconds> max_staleness() const;
249 friend MONGOCXX_API
bool MONGOCXX_CALL operator==(const
read_preference&,
251 friend MONGOCXX_API
bool MONGOCXX_CALL operator!=(const
read_preference&,
257 class MONGOCXX_PRIVATE impl;
261 std::unique_ptr<impl> _impl;
264 MONGOCXX_INLINE_NAMESPACE_END
267 #include <mongocxx/config/postlude.hpp> Class representing a MongoDB connection string URI.
Definition: uri.hpp:40
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Definition: error_code.hpp:117
Class representing a client connection to MongoDB.
Definition: client.hpp:57
Definition: read_preference.hpp:102
Class representing a MongoDB database.
Definition: database.hpp:47
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:57
read_mode
Determines which members in a replica set are acceptable to read from.
Definition: read_preference.hpp:70
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:87