20 #include "mongo/base/status.h"
21 #include "mongo/client/export_macros.h"
22 #include "mongo/client/options.h"
49 MONGO_CLIENT_API
Status MONGO_CLIENT_FUNC
initialize(
const Options& options = Options());
98 return status().isOK();
104 void assertInitialized()
const;
115 bool _terminateNeeded;
Status represents an error state or the absence thereof.
Definition: status.h:50
bool initialized() const
Returns 'true' if initialization succeeded, 'false' otherwise.
Definition: init.h:97
MONGO_CLIENT_API Status MONGO_CLIENT_FUNC shutdown()
Terminates the client driver.
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20
const Status & status() const
Returns the Status generated by the internal call to 'client::initialize'.
Definition: init.h:92
MONGO_CLIENT_API Status MONGO_CLIENT_FUNC initialize(const Options &options=Options())
Initializes the client driver, possibly with custom options.
The Options structure is passed to mongo::client::initialize to configure various properties and conf...
Definition: options.h:32
An RAII helper to simplify driver setup and teardown.
Definition: init.h:69
MONGO_CLIENT_API Status(MONGO_CLIENT_FUNC *saslClientAuthenticate)(DBClientWithCommands *client
Attempts to authenticate "client" using the SASL protocol.