From d9528430cb38e15d2290a420f66419b38c8ca8c9 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 15 Sep 2025 14:05:38 -0500 Subject: [PATCH 01/13] CXX-3235 add mongocxx::v1 forward headers and component files --- src/mongocxx/include/mongocxx/docs/v1.hpp | 20 +++ .../mongocxx/v1/aggregate_options-fwd.hpp | 32 ++++ .../include/mongocxx/v1/aggregate_options.hpp | 44 ++++++ src/mongocxx/include/mongocxx/v1/apm-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/apm.hpp | 43 ++++++ .../mongocxx/v1/auto_encryption-fwd.hpp | 32 ++++ .../include/mongocxx/v1/auto_encryption.hpp | 43 ++++++ .../include/mongocxx/v1/bulk_write-fwd.hpp | 32 ++++ .../include/mongocxx/v1/bulk_write.hpp | 138 ++++++++++++++++++ .../include/mongocxx/v1/change_stream-fwd.hpp | 32 ++++ .../include/mongocxx/v1/change_stream.hpp | 49 +++++++ .../include/mongocxx/v1/client-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/client.hpp | 54 +++++++ .../mongocxx/v1/client_encryption-fwd.hpp | 32 ++++ .../include/mongocxx/v1/client_encryption.hpp | 55 +++++++ .../mongocxx/v1/client_session-fwd.hpp | 32 ++++ .../include/mongocxx/v1/client_session.hpp | 52 +++++++ .../include/mongocxx/v1/collection-fwd.hpp | 32 ++++ .../include/mongocxx/v1/collection.hpp | 44 ++++++ .../include/mongocxx/v1/count_options-fwd.hpp | 32 ++++ .../include/mongocxx/v1/count_options.hpp | 44 ++++++ .../include/mongocxx/v1/cursor-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/cursor.hpp | 44 ++++++ .../include/mongocxx/v1/data_key-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/data_key.hpp | 44 ++++++ .../include/mongocxx/v1/database-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/database.hpp | 44 ++++++ .../mongocxx/v1/delete_many_options-fwd.hpp | 32 ++++ .../mongocxx/v1/delete_many_options.hpp | 44 ++++++ .../mongocxx/v1/delete_many_result-fwd.hpp | 32 ++++ .../mongocxx/v1/delete_many_result.hpp | 44 ++++++ .../mongocxx/v1/delete_one_options-fwd.hpp | 40 +++++ .../mongocxx/v1/delete_one_options.hpp | 44 ++++++ .../mongocxx/v1/delete_one_result-fwd.hpp | 32 ++++ .../include/mongocxx/v1/delete_one_result.hpp | 44 ++++++ .../mongocxx/v1/distinct_options-fwd.hpp | 32 ++++ .../include/mongocxx/v1/distinct_options.hpp | 42 ++++++ .../include/mongocxx/v1/encrypt-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/encrypt.hpp | 46 ++++++ .../estimated_document_count_options-fwd.hpp | 32 ++++ .../v1/estimated_document_count_options.hpp | 42 ++++++ .../mongocxx/v1/events/command_failed-fwd.hpp | 34 +++++ .../mongocxx/v1/events/command_failed.hpp | 48 ++++++ .../v1/events/command_failed_event-fwd.hpp | 34 +++++ .../v1/events/command_started-fwd.hpp | 34 +++++ .../mongocxx/v1/events/command_started.hpp | 48 ++++++ .../v1/events/command_succeeded-fwd.hpp | 34 +++++ .../mongocxx/v1/events/command_succeeded.hpp | 48 ++++++ .../mongocxx/v1/events/server_closed-fwd.hpp | 34 +++++ .../mongocxx/v1/events/server_closed.hpp | 46 ++++++ .../v1/events/server_description-fwd.hpp | 34 +++++ .../mongocxx/v1/events/server_description.hpp | 46 ++++++ .../events/server_description_changed-fwd.hpp | 34 +++++ .../v1/events/server_description_changed.hpp | 46 ++++++ .../v1/events/server_heartbeat_failed-fwd.hpp | 34 +++++ .../v1/events/server_heartbeat_failed.hpp | 46 ++++++ .../events/server_heartbeat_started-fwd.hpp | 34 +++++ .../v1/events/server_heartbeat_started.hpp | 46 ++++++ .../events/server_heartbeat_succeeded-fwd.hpp | 34 +++++ .../v1/events/server_heartbeat_succeeded.hpp | 46 ++++++ .../mongocxx/v1/events/server_opening-fwd.hpp | 34 +++++ .../mongocxx/v1/events/server_opening.hpp | 46 ++++++ .../v1/events/topology_closed-fwd.hpp | 34 +++++ .../mongocxx/v1/events/topology_closed.hpp | 46 ++++++ .../v1/events/topology_description-fwd.hpp | 34 +++++ .../v1/events/topology_description.hpp | 46 ++++++ .../topology_description_changed-fwd.hpp | 34 +++++ .../events/topology_description_changed.hpp | 46 ++++++ .../v1/events/topology_opening-fwd.hpp | 34 +++++ .../mongocxx/v1/events/topology_opening.hpp | 46 ++++++ .../v1/events/topology_opening_event.hpp | 46 ++++++ .../include/mongocxx/v1/exception-fwd.hpp | 38 +++++ .../include/mongocxx/v1/exception.hpp | 58 ++++++++ .../v1/find_one_and_delete_options-fwd.hpp | 32 ++++ .../v1/find_one_and_delete_options.hpp | 45 ++++++ .../v1/find_one_and_replace_options-fwd.hpp | 32 ++++ .../v1/find_one_and_replace_options.hpp | 45 ++++++ .../v1/find_one_and_update_options-fwd.hpp | 32 ++++ .../v1/find_one_and_update_options.hpp | 45 ++++++ .../include/mongocxx/v1/find_options-fwd.hpp | 32 ++++ .../include/mongocxx/v1/find_options.hpp | 44 ++++++ .../include/mongocxx/v1/gridfs/bucket-fwd.hpp | 34 +++++ .../include/mongocxx/v1/gridfs/bucket.hpp | 46 ++++++ .../mongocxx/v1/gridfs/downloader-fwd.hpp | 34 +++++ .../include/mongocxx/v1/gridfs/downloader.hpp | 46 ++++++ .../mongocxx/v1/gridfs/upload_options-fwd.hpp | 34 +++++ .../mongocxx/v1/gridfs/upload_options.hpp | 46 ++++++ .../mongocxx/v1/gridfs/upload_result-fwd.hpp | 34 +++++ .../mongocxx/v1/gridfs/upload_result.hpp | 46 ++++++ .../mongocxx/v1/gridfs/uploader-fwd.hpp | 34 +++++ .../include/mongocxx/v1/gridfs/uploader.hpp | 46 ++++++ src/mongocxx/include/mongocxx/v1/hint-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/hint.hpp | 46 ++++++ .../include/mongocxx/v1/indexes-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/indexes.hpp | 64 ++++++++ .../mongocxx/v1/insert_many_options-fwd.hpp | 32 ++++ .../mongocxx/v1/insert_many_options.hpp | 44 ++++++ .../mongocxx/v1/insert_many_result-fwd.hpp | 32 ++++ .../mongocxx/v1/insert_many_result.hpp | 44 ++++++ .../mongocxx/v1/insert_one_options-fwd.hpp | 32 ++++ .../mongocxx/v1/insert_one_options.hpp | 44 ++++++ .../mongocxx/v1/insert_one_result-fwd.hpp | 32 ++++ .../include/mongocxx/v1/insert_one_result.hpp | 44 ++++++ .../include/mongocxx/v1/instance-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/instance.hpp | 67 +++++++++ .../include/mongocxx/v1/logger-fwd.hpp | 35 +++++ src/mongocxx/include/mongocxx/v1/logger.hpp | 57 ++++++++ .../include/mongocxx/v1/pipeline-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/pipeline.hpp | 44 ++++++ src/mongocxx/include/mongocxx/v1/pool-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/pool.hpp | 55 +++++++ .../include/mongocxx/v1/range-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/range.hpp | 44 ++++++ .../include/mongocxx/v1/read_concern-fwd.hpp | 32 ++++ .../include/mongocxx/v1/read_concern.hpp | 44 ++++++ .../mongocxx/v1/read_preference-fwd.hpp | 32 ++++ .../include/mongocxx/v1/read_preference.hpp | 44 ++++++ .../mongocxx/v1/replace_one_options-fwd.hpp | 32 ++++ .../mongocxx/v1/replace_one_options.hpp | 44 ++++++ .../mongocxx/v1/replace_one_result-fwd.hpp | 32 ++++ .../mongocxx/v1/replace_one_result.hpp | 44 ++++++ .../mongocxx/v1/return_document-fwd.hpp | 32 ++++ .../include/mongocxx/v1/return_document.hpp | 42 ++++++ .../v1/rewrap_many_datakey_options-fwd.hpp | 32 ++++ .../v1/rewrap_many_datakey_options.hpp | 44 ++++++ .../v1/rewrap_many_datakey_result-fwd.hpp | 32 ++++ .../v1/rewrap_many_datakey_result.hpp | 44 ++++++ .../mongocxx/v1/search_indexes-fwd.hpp | 32 ++++ .../include/mongocxx/v1/search_indexes.hpp | 56 +++++++ .../include/mongocxx/v1/server_error-fwd.hpp | 36 +++++ .../include/mongocxx/v1/server_error.hpp | 46 ++++++ .../include/mongocxx/v1/stable_api-fwd.hpp | 32 ++++ .../include/mongocxx/v1/stable_api.hpp | 42 ++++++ src/mongocxx/include/mongocxx/v1/tls-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/tls.hpp | 42 ++++++ .../include/mongocxx/v1/transaction-fwd.hpp | 32 ++++ .../include/mongocxx/v1/transaction.hpp | 44 ++++++ .../mongocxx/v1/update_many_options-fwd.hpp | 32 ++++ .../mongocxx/v1/update_many_options.hpp | 44 ++++++ .../mongocxx/v1/update_many_result-fwd.hpp | 32 ++++ .../mongocxx/v1/update_many_result.hpp | 44 ++++++ .../mongocxx/v1/update_one_options-fwd.hpp | 32 ++++ .../mongocxx/v1/update_one_options.hpp | 44 ++++++ .../mongocxx/v1/update_one_result-fwd.hpp | 32 ++++ .../include/mongocxx/v1/update_one_result.hpp | 44 ++++++ src/mongocxx/include/mongocxx/v1/uri-fwd.hpp | 32 ++++ src/mongocxx/include/mongocxx/v1/uri.hpp | 44 ++++++ .../include/mongocxx/v1/write_concern-fwd.hpp | 32 ++++ .../include/mongocxx/v1/write_concern.hpp | 44 ++++++ src/mongocxx/lib/CMakeLists.txt | 73 +++++++++ .../lib/mongocxx/v1/aggregate_options.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/apm.cpp | 15 ++ .../lib/mongocxx/v1/auto_encryption.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/bulk_write.cpp | 15 ++ .../lib/mongocxx/v1/change_stream.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/client.cpp | 15 ++ .../lib/mongocxx/v1/client_encryption.cpp | 15 ++ .../lib/mongocxx/v1/client_session.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/collection.cpp | 15 ++ .../lib/mongocxx/v1/count_options.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/cursor.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/data_key.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/database.cpp | 15 ++ .../lib/mongocxx/v1/delete_many_options.cpp | 15 ++ .../lib/mongocxx/v1/delete_many_result.cpp | 15 ++ .../lib/mongocxx/v1/delete_one_options.cpp | 15 ++ .../lib/mongocxx/v1/delete_one_result.cpp | 15 ++ .../lib/mongocxx/v1/distinct_options.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/encrypt.cpp | 15 ++ .../v1/estimated_document_count_options.cpp | 15 ++ .../lib/mongocxx/v1/events/command_failed.cpp | 15 ++ .../mongocxx/v1/events/command_started.cpp | 15 ++ .../mongocxx/v1/events/command_succeeded.cpp | 15 ++ .../lib/mongocxx/v1/events/server_closed.cpp | 15 ++ .../mongocxx/v1/events/server_description.cpp | 15 ++ .../v1/events/server_description_changed.cpp | 15 ++ .../v1/events/server_heartbeat_failed.cpp | 15 ++ .../v1/events/server_heartbeat_started.cpp | 15 ++ .../v1/events/server_heartbeat_succeeded.cpp | 15 ++ .../lib/mongocxx/v1/events/server_opening.cpp | 15 ++ .../mongocxx/v1/events/topology_closed.cpp | 15 ++ .../v1/events/topology_description.cpp | 15 ++ .../events/topology_description_changed.cpp | 15 ++ .../mongocxx/v1/events/topology_opening.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/exception.cpp | 15 ++ .../v1/find_one_and_delete_options.cpp | 15 ++ .../v1/find_one_and_replace_options.cpp | 15 ++ .../v1/find_one_and_update_options.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/find_options.cpp | 15 ++ .../lib/mongocxx/v1/gridfs/bucket.cpp | 15 ++ .../lib/mongocxx/v1/gridfs/downloader.cpp | 15 ++ .../lib/mongocxx/v1/gridfs/upload_options.cpp | 15 ++ .../lib/mongocxx/v1/gridfs/upload_result.cpp | 15 ++ .../lib/mongocxx/v1/gridfs/uploader.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/hint.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/indexes.cpp | 15 ++ .../lib/mongocxx/v1/insert_many_options.cpp | 15 ++ .../lib/mongocxx/v1/insert_many_result.cpp | 15 ++ .../lib/mongocxx/v1/insert_one_options.cpp | 15 ++ .../lib/mongocxx/v1/insert_one_result.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/instance.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/logger.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/pipeline.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/pool.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/range.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/read_concern.cpp | 15 ++ .../lib/mongocxx/v1/read_preference.cpp | 15 ++ .../lib/mongocxx/v1/replace_one_options.cpp | 15 ++ .../lib/mongocxx/v1/replace_one_result.cpp | 15 ++ .../lib/mongocxx/v1/return_document.cpp | 15 ++ .../v1/rewrap_many_datakey_options.cpp | 15 ++ .../v1/rewrap_many_datakey_result.cpp | 15 ++ .../lib/mongocxx/v1/search_indexes.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/server_error.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/stable_api.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/tls.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/transaction.cpp | 15 ++ .../lib/mongocxx/v1/update_many_options.cpp | 15 ++ .../lib/mongocxx/v1/update_many_result.cpp | 15 ++ .../lib/mongocxx/v1/update_one_options.cpp | 15 ++ .../lib/mongocxx/v1/update_one_result.cpp | 15 ++ src/mongocxx/lib/mongocxx/v1/uri.cpp | 15 ++ .../lib/mongocxx/v1/write_concern.cpp | 15 ++ 223 files changed, 7137 insertions(+) create mode 100644 src/mongocxx/include/mongocxx/v1/aggregate_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/aggregate_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/apm-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/apm.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/auto_encryption-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/auto_encryption.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/bulk_write-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/bulk_write.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/change_stream-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/change_stream.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client_encryption-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client_encryption.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client_session-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/client_session.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/collection-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/collection.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/count_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/count_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/cursor-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/cursor.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/data_key-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/data_key.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/database-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/database.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_many_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_many_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_many_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_many_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_one_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_one_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/delete_one_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/distinct_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/distinct_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/encrypt-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/encrypt.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/estimated_document_count_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_failed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_failed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_failed_event-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_started-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_started.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_succeeded-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_closed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_closed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_description-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_description.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_description_changed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_description_changed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_opening-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/server_opening.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_closed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_closed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_description-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_description.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_description_changed-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_description_changed.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_opening-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_opening.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/events/topology_opening_event.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/exception-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/exception.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_delete_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_replace_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_update_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/find_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/bucket-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/bucket.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/downloader-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/downloader.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/upload_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/upload_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/upload_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/upload_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/uploader-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/gridfs/uploader.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/hint-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/hint.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/indexes-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/indexes.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_many_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_many_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_many_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_many_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_one_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_one_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_one_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/insert_one_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/instance-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/instance.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/logger-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/logger.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/pipeline-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/pipeline.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/pool-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/pool.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/range-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/range.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/read_concern-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/read_concern.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/read_preference-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/read_preference.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/replace_one_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/replace_one_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/replace_one_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/replace_one_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/return_document-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/return_document.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/search_indexes-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/search_indexes.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/server_error-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/server_error.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/stable_api.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/tls-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/tls.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/transaction-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/transaction.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_many_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_many_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_many_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_many_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_one_options-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_one_options.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_one_result-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/update_one_result.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/uri-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/uri.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/write_concern-fwd.hpp create mode 100644 src/mongocxx/include/mongocxx/v1/write_concern.hpp create mode 100644 src/mongocxx/lib/mongocxx/v1/aggregate_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/apm.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/auto_encryption.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/bulk_write.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/change_stream.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/client.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/client_encryption.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/client_session.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/collection.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/count_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/cursor.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/data_key.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/database.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/delete_many_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/delete_many_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/delete_one_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/delete_one_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/distinct_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/encrypt.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/estimated_document_count_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/command_failed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/command_started.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/command_succeeded.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_closed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_description.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_description_changed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_failed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_started.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_succeeded.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/server_opening.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/topology_closed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/topology_description.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/topology_description_changed.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/events/topology_opening.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/exception.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/find_one_and_delete_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/find_one_and_replace_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/find_one_and_update_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/find_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/gridfs/bucket.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/gridfs/downloader.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/gridfs/upload_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/gridfs/upload_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/gridfs/uploader.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/hint.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/indexes.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/insert_many_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/insert_many_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/insert_one_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/insert_one_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/instance.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/logger.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/pipeline.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/pool.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/range.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/read_concern.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/read_preference.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/replace_one_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/replace_one_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/return_document.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/search_indexes.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/server_error.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/stable_api.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/tls.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/transaction.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/update_many_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/update_many_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/update_one_options.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/update_one_result.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/uri.cpp create mode 100644 src/mongocxx/lib/mongocxx/v1/write_concern.cpp diff --git a/src/mongocxx/include/mongocxx/docs/v1.hpp b/src/mongocxx/include/mongocxx/docs/v1.hpp index 56c1b74f7c..6639949ca2 100644 --- a/src/mongocxx/include/mongocxx/docs/v1.hpp +++ b/src/mongocxx/include/mongocxx/docs/v1.hpp @@ -40,7 +40,27 @@ /// @warning For internal use only! /// +/// +/// @dir mongocxx/v1/events +/// Provide headers related to APM events. +/// + +/// +/// @dir mongocxx/v1/gridfs +/// Provide headers related to GridFS. +/// + /// /// @namespace mongocxx::v1 /// Declares entities whose ABI stability is guaranteed for documented symbols. /// + +/// +/// @namespace mongocxx::v1::gridfs +/// @copydoc mongocxx::gridfs +/// + +/// +/// @namespace mongocxx::v1::events +/// @copydoc mongocxx::events +/// diff --git a/src/mongocxx/include/mongocxx/v1/aggregate_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/aggregate_options-fwd.hpp new file mode 100644 index 0000000000..022ae8f1c3 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/aggregate_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class aggregate_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::aggregate_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/aggregate_options.hpp b/src/mongocxx/include/mongocxx/v1/aggregate_options.hpp new file mode 100644 index 0000000000..8e3b5f5cf3 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/aggregate_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "aggregate" command. +/// +/// @see +/// - [`aggregate` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/aggregation/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class aggregate_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::aggregate_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/apm-fwd.hpp b/src/mongocxx/include/mongocxx/v1/apm-fwd.hpp new file mode 100644 index 0000000000..21fc0bf291 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/apm-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class apm; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::apm. +/// diff --git a/src/mongocxx/include/mongocxx/v1/apm.hpp b/src/mongocxx/include/mongocxx/v1/apm.hpp new file mode 100644 index 0000000000..40c5797d38 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/apm.hpp @@ -0,0 +1,43 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to Application Performance Monitoring (APM) configuration. +/// +/// @see +/// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) +/// - [SDAM Logging and Monitoring Specification (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +class apm {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::apm. +/// diff --git a/src/mongocxx/include/mongocxx/v1/auto_encryption-fwd.hpp b/src/mongocxx/include/mongocxx/v1/auto_encryption-fwd.hpp new file mode 100644 index 0000000000..6da52d1c07 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/auto_encryption-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class auto_encryption; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::auto_encryption. +/// diff --git a/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp b/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp new file mode 100644 index 0000000000..e4b2986aad --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp @@ -0,0 +1,43 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related Queryable Encryption configuration. +/// +/// @see +/// - [MongoClient Options for Queryable Encryption (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/reference/qe-options-clients/) +/// - [MongoClient Options for CSFLE](https://www.mongodb.com/docs/manual/core/csfle/reference/csfle-options-clients/) +/// +class auto_encryption {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::auto_encryption. +/// diff --git a/src/mongocxx/include/mongocxx/v1/bulk_write-fwd.hpp b/src/mongocxx/include/mongocxx/v1/bulk_write-fwd.hpp new file mode 100644 index 0000000000..d3bde23825 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/bulk_write-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class bulk_write; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares entities related to bulk write operations. +/// diff --git a/src/mongocxx/include/mongocxx/v1/bulk_write.hpp b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp new file mode 100644 index 0000000000..e08f2d4b71 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp @@ -0,0 +1,138 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// An ordered list of bulk write operations. +/// +/// @see +/// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class bulk_write { + public: + /// + /// Enumeration identifying the type of a bulk write operation. + /// + enum class type {}; + + /// + /// A single "Insert One" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class insert_one {}; + + /// + /// A single "Update One" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class update_one {}; + + /// + /// A single "Update Many" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class update_many {}; + + /// + /// A single "Replace One" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class replace_one {}; + + /// + /// A single "Delete One" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class delete_one {}; + + /// + /// A single "Delete Many" bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class delete_many {}; + + /// + /// A single bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class single {}; + + /// + /// Options for a bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; + + /// + /// The result of a bulk write operation. + /// + /// @see + /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) + /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class result {}; +}; + +} // namespace v1 +} // namespace mongocxx + +/// +/// @file +/// Provides entities related to bulk write operations. +/// diff --git a/src/mongocxx/include/mongocxx/v1/change_stream-fwd.hpp b/src/mongocxx/include/mongocxx/v1/change_stream-fwd.hpp new file mode 100644 index 0000000000..6578b59eb7 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/change_stream-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class change_stream; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::change_stream. +/// diff --git a/src/mongocxx/include/mongocxx/v1/change_stream.hpp b/src/mongocxx/include/mongocxx/v1/change_stream.hpp new file mode 100644 index 0000000000..87ae2c7b0d --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/change_stream.hpp @@ -0,0 +1,49 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB change stream. +/// +/// @see +/// - [Change Streams (MongoDB Manual)](https://www.mongodb.com/docs/manual/changeStreams/) +/// +class change_stream { + /// + /// Options for @ref mongocxx::v1::change_stream. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::change_stream. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client-fwd.hpp b/src/mongocxx/include/mongocxx/v1/client-fwd.hpp new file mode 100644 index 0000000000..f92942ecbf --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class client; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::client. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client.hpp b/src/mongocxx/include/mongocxx/v1/client.hpp new file mode 100644 index 0000000000..964eca92fe --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client.hpp @@ -0,0 +1,54 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A connection to a MongoDB deployment. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @see +/// - [Connection Monitoring and Pooling (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/connection-monitoring-and-pooling/connection-monitoring-and-pooling/) +/// - [Connection Strings (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/connection-string/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class client { + /// + /// Options for @ref mongocxx::v1::client. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::client. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client_encryption-fwd.hpp b/src/mongocxx/include/mongocxx/v1/client_encryption-fwd.hpp new file mode 100644 index 0000000000..577ebfd4a9 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client_encryption-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class client_encryption; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::client_encryption. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client_encryption.hpp b/src/mongocxx/include/mongocxx/v1/client_encryption.hpp new file mode 100644 index 0000000000..f071fb854f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client_encryption.hpp @@ -0,0 +1,55 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Support for MongoDB In-Use Encryption. +/// +/// Provides interfaces to support both Queryable Encryption and Client-Side Field Level Encryption (CSFLE). +/// +/// @see +/// - [In-Use Encryption (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/csfle/) +/// - [Queryable Encryption](https://www.mongodb.com/docs/manual/core/queryable-encryption/) +/// - [CSFLE](https://www.mongodb.com/docs/manual/core/csfle/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class client_encryption { + /// + /// Options for @ref mongocxx::v1::client_encryption. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::client_encryption. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client_session-fwd.hpp b/src/mongocxx/include/mongocxx/v1/client_session-fwd.hpp new file mode 100644 index 0000000000..7ef3f48605 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client_session-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class client_session; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::client_session. +/// diff --git a/src/mongocxx/include/mongocxx/v1/client_session.hpp b/src/mongocxx/include/mongocxx/v1/client_session.hpp new file mode 100644 index 0000000000..6ce2a1439f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/client_session.hpp @@ -0,0 +1,52 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB client session. +/// +/// @see +/// - [Read Isolation, Consistency, and Recency (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/read-isolation-consistency-recency/) +/// - [Server Sessions (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/server-sessions/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class client_session { + /// + /// Options for @ref mongocxx::v1::client_session. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::client_session. +/// diff --git a/src/mongocxx/include/mongocxx/v1/collection-fwd.hpp b/src/mongocxx/include/mongocxx/v1/collection-fwd.hpp new file mode 100644 index 0000000000..ba791b244e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/collection-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class collection; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::collection. +/// diff --git a/src/mongocxx/include/mongocxx/v1/collection.hpp b/src/mongocxx/include/mongocxx/v1/collection.hpp new file mode 100644 index 0000000000..82acec22d3 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/collection.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB collection. +/// +/// @see +/// - [Databases and Collections in MongoDB (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/databases-and-collections/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class collection {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::collection. +/// diff --git a/src/mongocxx/include/mongocxx/v1/count_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/count_options-fwd.hpp new file mode 100644 index 0000000000..963023b210 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/count_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class count_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::count_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/count_options.hpp b/src/mongocxx/include/mongocxx/v1/count_options.hpp new file mode 100644 index 0000000000..7c0f30ac80 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/count_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "count" command. +/// +/// @see +/// - [`count` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/count/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class count_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::count_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/cursor-fwd.hpp b/src/mongocxx/include/mongocxx/v1/cursor-fwd.hpp new file mode 100644 index 0000000000..cbdb6c5c4e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/cursor-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class cursor; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::cursor. +/// diff --git a/src/mongocxx/include/mongocxx/v1/cursor.hpp b/src/mongocxx/include/mongocxx/v1/cursor.hpp new file mode 100644 index 0000000000..80bde5ac66 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/cursor.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB cursor. +/// +/// @see +/// - [Cursors (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/cursors/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class cursor {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::cursor. +/// diff --git a/src/mongocxx/include/mongocxx/v1/data_key-fwd.hpp b/src/mongocxx/include/mongocxx/v1/data_key-fwd.hpp new file mode 100644 index 0000000000..8a8552a42e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/data_key-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class data_key; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::data_key. +/// diff --git a/src/mongocxx/include/mongocxx/v1/data_key.hpp b/src/mongocxx/include/mongocxx/v1/data_key.hpp new file mode 100644 index 0000000000..e44ae69ac8 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/data_key.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A Data Encryption Key (DEK) for CSFLE and Queryable Encryption. +/// +/// @see +/// - [Encryption Keys and Key Vaults (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/keys-key-vaults/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class data_key {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::data_key. +/// diff --git a/src/mongocxx/include/mongocxx/v1/database-fwd.hpp b/src/mongocxx/include/mongocxx/v1/database-fwd.hpp new file mode 100644 index 0000000000..342c2e0311 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/database-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class database; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::database. +/// diff --git a/src/mongocxx/include/mongocxx/v1/database.hpp b/src/mongocxx/include/mongocxx/v1/database.hpp new file mode 100644 index 0000000000..1d16cdfd50 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/database.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB database. +/// +/// @see +/// - [Databases and Collections in MongoDB (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/databases-and-collections/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class database {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::database. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_options-fwd.hpp new file mode 100644 index 0000000000..ec6a50e2fa --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_many_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class delete_many_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::delete_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp new file mode 100644 index 0000000000..c5a09a5c80 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "deleteMany" command. +/// +/// @see +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class delete_many_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::delete_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_result-fwd.hpp new file mode 100644 index 0000000000..f750a908b4 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_many_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class delete_many_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::delete_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp new file mode 100644 index 0000000000..a496e55a74 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of a "deleteMany" command. +/// +/// @see +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class delete_many_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::delete_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp new file mode 100644 index 0000000000..cf6b3c845a --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp @@ -0,0 +1,40 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "deleteOne" command. +/// +/// @see +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class delete_one_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::delete_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp new file mode 100644 index 0000000000..0c5075910f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "deleteOne" command. +/// +/// @see +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class delete_one_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::delete_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_result-fwd.hpp new file mode 100644 index 0000000000..126e18c70e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_one_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class delete_one_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::delete_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp new file mode 100644 index 0000000000..d4356012ce --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of a "deleteOne" command. +/// +/// @see +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class delete_one_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::delete_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/distinct_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/distinct_options-fwd.hpp new file mode 100644 index 0000000000..94e53c9950 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/distinct_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class distinct_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::distinct_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/distinct_options.hpp b/src/mongocxx/include/mongocxx/v1/distinct_options.hpp new file mode 100644 index 0000000000..ea9da71e30 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/distinct_options.hpp @@ -0,0 +1,42 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "distinct" command. +/// +/// @see +/// - [`distinct` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/distinct/) +/// +class distinct_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::distinct_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/encrypt-fwd.hpp b/src/mongocxx/include/mongocxx/v1/encrypt-fwd.hpp new file mode 100644 index 0000000000..cc166388ca --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/encrypt-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class encrypt; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::encrypt. +/// diff --git a/src/mongocxx/include/mongocxx/v1/encrypt.hpp b/src/mongocxx/include/mongocxx/v1/encrypt.hpp new file mode 100644 index 0000000000..863b354fba --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/encrypt.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to field encryption for CSFLE and Queryable Encryption. +/// +/// @see +/// - [Fields and Encryption Types (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/csfle/fundamentals/encryption-algorithms/) +/// - [Encrypted Fields and Enabled Queries (MongoDB Manual)](https://mongodb.com/docs/manual/core/queryable-encryption/fundamentals/encrypt-and-query/) +/// - [Encryption Schemas](https://www.mongodb.com/docs/manual/core/csfle/fundamentals/create-schema/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class encrypt {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::encrypt. +/// diff --git a/src/mongocxx/include/mongocxx/v1/estimated_document_count_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options-fwd.hpp new file mode 100644 index 0000000000..26e26d1adf --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class estimated_document_count_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::estimated_document_count_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp new file mode 100644 index 0000000000..5544718a25 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp @@ -0,0 +1,42 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "estimatedDocumentCount" command. +/// +/// @see +/// - [`count` (database stage) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/count/) +/// +class estimated_document_count_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::estimated_document_count_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_failed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/command_failed-fwd.hpp new file mode 100644 index 0000000000..e13053449e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_failed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class command_failed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::command_failed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp b/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp new file mode 100644 index 0000000000..88c182117a --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp @@ -0,0 +1,48 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `CommandFailedEvent` from the Command Logging and Monitoring specification. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @see +/// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class command_failed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::command_failed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_failed_event-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/command_failed_event-fwd.hpp new file mode 100644 index 0000000000..e13053449e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_failed_event-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class command_failed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::command_failed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_started-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/command_started-fwd.hpp new file mode 100644 index 0000000000..b19355c136 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_started-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class command_started; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::command_started. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_started.hpp b/src/mongocxx/include/mongocxx/v1/events/command_started.hpp new file mode 100644 index 0000000000..385f08abad --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_started.hpp @@ -0,0 +1,48 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `CommandStartedEvent` from the Command Logging and Monitoring specification. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @see +/// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class command_started {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::command_started. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_succeeded-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/command_succeeded-fwd.hpp new file mode 100644 index 0000000000..fb04bac7f8 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_succeeded-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class command_succeeded; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::command_succeeded. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp b/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp new file mode 100644 index 0000000000..7c1a86adfa --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp @@ -0,0 +1,48 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `CommandSucceededEvent` from the Command Logging and Monitoring specification. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @see +/// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class command_succeeded {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::command_succeeded. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_closed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_closed-fwd.hpp new file mode 100644 index 0000000000..96717ea1a7 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_closed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_closed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_closed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_closed.hpp b/src/mongocxx/include/mongocxx/v1/events/server_closed.hpp new file mode 100644 index 0000000000..c3a04e4411 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_closed.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerClosedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_closed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_closed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_description-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_description-fwd.hpp new file mode 100644 index 0000000000..57ed7a7043 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_description-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_description; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_description. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_description.hpp b/src/mongocxx/include/mongocxx/v1/events/server_description.hpp new file mode 100644 index 0000000000..389427057e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_description.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerDescription` from the Server Discovery and Monitoring specification. +/// +/// @see +/// - [Server Discovery and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_description {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_description. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_description_changed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_description_changed-fwd.hpp new file mode 100644 index 0000000000..4b00d7336c --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_description_changed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_description_changed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_description_changed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_description_changed.hpp b/src/mongocxx/include/mongocxx/v1/events/server_description_changed.hpp new file mode 100644 index 0000000000..9421a55efe --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_description_changed.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerDescriptionChangedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_description_changed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_description_changed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed-fwd.hpp new file mode 100644 index 0000000000..e5b66533a7 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_heartbeat_failed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_heartbeat_failed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed.hpp new file mode 100644 index 0000000000..ae27b4b430 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_failed.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerHeartbeatFailedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_heartbeat_failed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_heartbeat_failed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started-fwd.hpp new file mode 100644 index 0000000000..fe514d3d84 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_heartbeat_started; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_heartbeat_started. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started.hpp new file mode 100644 index 0000000000..b3193a114f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_started.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerHeartbeatStartedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_heartbeat_started {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_heartbeat_started. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded-fwd.hpp new file mode 100644 index 0000000000..b2eaf3ae6b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_heartbeat_succeeded; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_heartbeat_succeeded. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded.hpp b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded.hpp new file mode 100644 index 0000000000..4fc3aaf5dc --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_heartbeat_succeeded.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerHeartbeatSucceededEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_heartbeat_succeeded {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_heartbeat_succeeded. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_opening-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/server_opening-fwd.hpp new file mode 100644 index 0000000000..d0d1976f5f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_opening-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class server_opening; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::server_opening. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/server_opening.hpp b/src/mongocxx/include/mongocxx/v1/events/server_opening.hpp new file mode 100644 index 0000000000..7e5d4b2c63 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/server_opening.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `ServerOpeningEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class server_opening {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::server_opening. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_closed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_closed-fwd.hpp new file mode 100644 index 0000000000..b6fb88a479 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_closed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class topology_closed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::topology_closed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_closed.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_closed.hpp new file mode 100644 index 0000000000..7317f7f669 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_closed.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `TopologyClosedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class topology_closed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::topology_closed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_description-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_description-fwd.hpp new file mode 100644 index 0000000000..3040f6b177 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_description-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class topology_description; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::topology_description. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_description.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_description.hpp new file mode 100644 index 0000000000..0d092d213b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_description.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `TopologyDescription` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class topology_description {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::topology_description. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_description_changed-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_description_changed-fwd.hpp new file mode 100644 index 0000000000..69ba3e1932 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_description_changed-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class topology_description_changed; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::topology_description_changed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_description_changed.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_description_changed.hpp new file mode 100644 index 0000000000..b95a8974b0 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_description_changed.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `TopologyDescriptionChangedEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class topology_description_changed {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::topology_description_changed. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_opening-fwd.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_opening-fwd.hpp new file mode 100644 index 0000000000..51f427cb7c --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_opening-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +class topology_opening; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::events::topology_opening. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_opening.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_opening.hpp new file mode 100644 index 0000000000..6eb2fee32f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_opening.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `TopologyOpeningEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class topology_opening {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::topology_opening. +/// diff --git a/src/mongocxx/include/mongocxx/v1/events/topology_opening_event.hpp b/src/mongocxx/include/mongocxx/v1/events/topology_opening_event.hpp new file mode 100644 index 0000000000..6eb2fee32f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/events/topology_opening_event.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace events { + +/// +/// `TopologyOpeningEvent` from the SDAM Logging and Monitoring specification. +/// +/// @see +/// - [SDAM Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class topology_opening {}; + +} // namespace events +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::events::topology_opening. +/// diff --git a/src/mongocxx/include/mongocxx/v1/exception-fwd.hpp b/src/mongocxx/include/mongocxx/v1/exception-fwd.hpp new file mode 100644 index 0000000000..5f33a06d65 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/exception-fwd.hpp @@ -0,0 +1,38 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include + +namespace mongocxx { +namespace v1 { + +enum class source_errc; + +enum class type_errc; + +class MONGOCXX_ABI_EXPORT exception; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares mongocxx error-handling utilities. +/// diff --git a/src/mongocxx/include/mongocxx/v1/exception.hpp b/src/mongocxx/include/mongocxx/v1/exception.hpp new file mode 100644 index 0000000000..25c686197e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/exception.hpp @@ -0,0 +1,58 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Enumeration identifying the source of a @ref mongocxx::v1 error. +/// +/// @attention This feature is experimental! It is not ready for use! +/// +enum class source_errc {}; + +/// +/// Enumeration identifying the type (cause) of a @ref mongocxx::v1 error. +/// +/// @attention This feature is experimental! It is not ready for use! +/// +enum class type_errc {}; + +/// +/// Base class for all exceptions thrown by @ref mongocxx::v1. +/// +/// @par Inherits: +/// - `std::system_error` +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class exception {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides mongocxx error-handling utilities. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options-fwd.hpp new file mode 100644 index 0000000000..eb128c9941 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class find_one_and_delete_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::find_one_and_delete_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp new file mode 100644 index 0000000000..970e20fada --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp @@ -0,0 +1,45 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "findOneAndDelete" command. +/// +/// @see +/// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) +/// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class find_one_and_delete_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::find_one_and_delete_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options-fwd.hpp new file mode 100644 index 0000000000..4356c71c97 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class find_one_and_replace_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::find_one_and_replace_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp new file mode 100644 index 0000000000..5e17065225 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp @@ -0,0 +1,45 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "findOneAndReplace" command. +/// +/// @see +/// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class find_one_and_replace_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::find_one_and_replace_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_update_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options-fwd.hpp new file mode 100644 index 0000000000..ea0792ef4e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class find_one_and_update_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::find_one_and_update_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp new file mode 100644 index 0000000000..dffb712c4e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp @@ -0,0 +1,45 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "findOneAndUpdate" command. +/// +/// @see +/// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class find_one_and_update_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::find_one_and_update_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/find_options-fwd.hpp new file mode 100644 index 0000000000..ccbe9ad257 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class find_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::find_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/find_options.hpp b/src/mongocxx/include/mongocxx/v1/find_options.hpp new file mode 100644 index 0000000000..67bd99ae2c --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/find_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "find" command. +/// +/// @see +/// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class find_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::find_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/bucket-fwd.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/bucket-fwd.hpp new file mode 100644 index 0000000000..59775d6a07 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/bucket-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +class bucket; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::gridfs::bucket. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/bucket.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/bucket.hpp new file mode 100644 index 0000000000..4cb5c55141 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/bucket.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +/// +/// A GridFS bucket. +/// +/// @see +/// - [GridFS (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/gridfs/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class bucket {}; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::gridfs::bucket. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/downloader-fwd.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/downloader-fwd.hpp new file mode 100644 index 0000000000..dbbc066f95 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/downloader-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +class downloader; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::gridfs::downloader. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/downloader.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/downloader.hpp new file mode 100644 index 0000000000..8c468c9796 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/downloader.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +/// +/// Support for downloading files from a GridFS bucket. +/// +/// @see +/// - [GridFS (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/gridfs/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class downloader {}; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::gridfs::downloader. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/upload_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/upload_options-fwd.hpp new file mode 100644 index 0000000000..72e550d5f6 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/upload_options-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +class upload_options; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::gridfs::upload_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/upload_options.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/upload_options.hpp new file mode 100644 index 0000000000..25bd8e9fc9 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/upload_options.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +/// +/// Options related to uploading a file to a GridFS bucket. +/// +/// @see +/// - [GridFS (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/gridfs/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class upload_options {}; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::gridfs::upload_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/upload_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/upload_result-fwd.hpp new file mode 100644 index 0000000000..3f6fcdf4b4 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/upload_result-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +class upload_result; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::gridfs::upload_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/upload_result.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/upload_result.hpp new file mode 100644 index 0000000000..a62b35ba2b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/upload_result.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +/// +/// Result of uploading a file to a GridFS bucket. +/// +/// @see +/// - [GridFS (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/gridfs/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class upload_result {}; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::gridfs::upload_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/uploader-fwd.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/uploader-fwd.hpp new file mode 100644 index 0000000000..7bb7bf3261 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/uploader-fwd.hpp @@ -0,0 +1,34 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +class uploader; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::gridfs::uploader. +/// diff --git a/src/mongocxx/include/mongocxx/v1/gridfs/uploader.hpp b/src/mongocxx/include/mongocxx/v1/gridfs/uploader.hpp new file mode 100644 index 0000000000..34574053b4 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/gridfs/uploader.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { +namespace gridfs { + +/// +/// Support for uploading files to a GridFS bucket. +/// +/// @see +/// - [GridFS (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/gridfs/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class uploader {}; + +} // namespace gridfs +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::gridfs::uploader. +/// diff --git a/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp b/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp new file mode 100644 index 0000000000..3a3c60ebc0 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class hint; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::read_concern. +/// diff --git a/src/mongocxx/include/mongocxx/v1/hint.hpp b/src/mongocxx/include/mongocxx/v1/hint.hpp new file mode 100644 index 0000000000..6aafa91205 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/hint.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to a MongoDB query hint. +/// +/// A document or string that specifies the index to use to support the query predicate. +/// +/// @see +/// - [Query Plans (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/query-plans/#std-label-read-operations-query-optimization) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class hint {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::hint. +/// diff --git a/src/mongocxx/include/mongocxx/v1/indexes-fwd.hpp b/src/mongocxx/include/mongocxx/v1/indexes-fwd.hpp new file mode 100644 index 0000000000..72405ed5aa --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/indexes-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class indexes; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::indexes. +/// diff --git a/src/mongocxx/include/mongocxx/v1/indexes.hpp b/src/mongocxx/include/mongocxx/v1/indexes.hpp new file mode 100644 index 0000000000..5ec493e2d5 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/indexes.hpp @@ -0,0 +1,64 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Support for MongoDB indexes. +/// +/// @note Not to be confused with Atlas Search indexes or Atlas Vector Search indexes. +/// +/// @see +/// - [Indexes (MongoDB Manual)](https://www.mongodb.com/docs/manual/indexes/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class indexes { + public: + /// + /// A description of a MongoDB index. + /// + /// @see + /// - [Indexes (MongoDB Manual)](https://www.mongodb.com/docs/manual/indexes/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class model {}; + + /// + /// Options for @ref mongocxx::v1::indexes. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::indexes. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_options-fwd.hpp new file mode 100644 index 0000000000..940348e824 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_many_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class insert_many_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::insert_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp new file mode 100644 index 0000000000..7741b177c1 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "insertMany" command. +/// +/// @see +/// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class insert_many_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::insert_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_result-fwd.hpp new file mode 100644 index 0000000000..fc10220d45 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_many_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class insert_many_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::insert_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp new file mode 100644 index 0000000000..f02b92e7f0 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of an "insertMany" command. +/// +/// @see +/// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class insert_many_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::insert_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_options-fwd.hpp new file mode 100644 index 0000000000..f5a6fe8209 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_one_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class insert_one_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::insert_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp new file mode 100644 index 0000000000..b3b3cd3af0 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "insertOne" command. +/// +/// @see +/// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class insert_one_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::insert_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_result-fwd.hpp new file mode 100644 index 0000000000..2507aaee21 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_one_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class insert_one_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::insert_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp new file mode 100644 index 0000000000..6e095255e4 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of an "insertOne" command. +/// +/// @see +/// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class insert_one_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::insert_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/instance-fwd.hpp b/src/mongocxx/include/mongocxx/v1/instance-fwd.hpp new file mode 100644 index 0000000000..5978bb90da --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/instance-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class instance; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::instance. +/// diff --git a/src/mongocxx/include/mongocxx/v1/instance.hpp b/src/mongocxx/include/mongocxx/v1/instance.hpp new file mode 100644 index 0000000000..90b02e8356 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/instance.hpp @@ -0,0 +1,67 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// An instance of the MongoDB C++ Driver. +/// +/// @attention This feature is experimental! It is not ready for use! +/// +/// All mongocxx API **MUST** be used within the lifetime of the instance object, with special exemptions listed below. +/// Only **ONE** instance object may exist for the lifetime of a given process. It is undefined behavior to use the +/// mongocxx API _before_ the instance object is initialized or _after_ the instance object is destroyed. It is +/// undefined behavior to create more than one instance object. +/// +/// ```cpp +/// int main() { +/// // ... +/// // MUST NOT call mongocxx API before this point. +/// { +/// mongocxx::v1::instance instance; +/// // MAY call mongocxx API at this point. +/// // ... +/// } +/// // MUST NOT call mongocxx API after this point. +/// // ... +/// } +/// ``` +/// +/// @par Special exemptions +/// Only the following API are permitted to be used outside the lifetime of an instance object: +/// - @ref mongocxx::v1::logger +/// +/// @see +/// - [Initialization and Cleanup (mongoc)](https://mongoc.org/libmongoc/current/init-cleanup.html) +/// +class instance {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::instance. +/// diff --git a/src/mongocxx/include/mongocxx/v1/logger-fwd.hpp b/src/mongocxx/include/mongocxx/v1/logger-fwd.hpp new file mode 100644 index 0000000000..c4a155ba23 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/logger-fwd.hpp @@ -0,0 +1,35 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +enum class log_level; + +class logger; +class default_logger; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::logger. +/// diff --git a/src/mongocxx/include/mongocxx/v1/logger.hpp b/src/mongocxx/include/mongocxx/v1/logger.hpp new file mode 100644 index 0000000000..8f35665b92 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/logger.hpp @@ -0,0 +1,57 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The log level for an unstructured log message. +/// +/// @attention This feature is experimental! It is not ready for use! +/// +enum class log_level {}; + +/// +/// The interface for an unstructured log message handler. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class logger {}; + +/// +/// A tag type representing mongoc's default unstructured log handler. +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class default_logger {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::logger. +/// diff --git a/src/mongocxx/include/mongocxx/v1/pipeline-fwd.hpp b/src/mongocxx/include/mongocxx/v1/pipeline-fwd.hpp new file mode 100644 index 0000000000..f36abcae0b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/pipeline-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class pipeline; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::pipeline. +/// diff --git a/src/mongocxx/include/mongocxx/v1/pipeline.hpp b/src/mongocxx/include/mongocxx/v1/pipeline.hpp new file mode 100644 index 0000000000..1169b5d608 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/pipeline.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB aggregation pipeline. +/// +/// @see +/// - [Aggregation Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/aggregates/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class pipeline {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::pipeline. +/// diff --git a/src/mongocxx/include/mongocxx/v1/pool-fwd.hpp b/src/mongocxx/include/mongocxx/v1/pool-fwd.hpp new file mode 100644 index 0000000000..e1c17ffb0d --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/pool-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class pool; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::pool. +/// diff --git a/src/mongocxx/include/mongocxx/v1/pool.hpp b/src/mongocxx/include/mongocxx/v1/pool.hpp new file mode 100644 index 0000000000..7962f8eabb --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/pool.hpp @@ -0,0 +1,55 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A thread-safe pool of client objects. +/// +/// @important This interface does NOT fully conform to the CMAP specification! +/// +/// @see +/// - [`mongoc_client_pool_t` (mongoc)](https://mongoc.org/libmongoc/current/mongoc_client_pool_t.html) +/// - [Connection Monitoring and Pooling (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/connection-monitoring-and-pooling/connection-monitoring-and-pooling/) +/// - [Connection Pool Overview (MongoDB Manual)](https://www.mongodb.com/docs/manual/administration/connection-pool-overview/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class pool { + /// + /// Options for @ref mongocxx::v1::pool. + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class options {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::pool. +/// diff --git a/src/mongocxx/include/mongocxx/v1/range-fwd.hpp b/src/mongocxx/include/mongocxx/v1/range-fwd.hpp new file mode 100644 index 0000000000..2d427532cb --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/range-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class range; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::range. +/// diff --git a/src/mongocxx/include/mongocxx/v1/range.hpp b/src/mongocxx/include/mongocxx/v1/range.hpp new file mode 100644 index 0000000000..58bced2d7c --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/range.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to range queries for Queryable Encryption. +/// +/// @see +/// - [Encrypted Fields and Enabled Queries](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/encrypt-and-query/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class range {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::range. +/// diff --git a/src/mongocxx/include/mongocxx/v1/read_concern-fwd.hpp b/src/mongocxx/include/mongocxx/v1/read_concern-fwd.hpp new file mode 100644 index 0000000000..0d18f45ff0 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/read_concern-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class read_concern; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::read_concern. +/// diff --git a/src/mongocxx/include/mongocxx/v1/read_concern.hpp b/src/mongocxx/include/mongocxx/v1/read_concern.hpp new file mode 100644 index 0000000000..2cb5de4de3 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/read_concern.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to a MongoDB Read Concern. +/// +/// @see +/// - [Read Concern (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/read-concern/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class read_concern {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::read_concern. +/// diff --git a/src/mongocxx/include/mongocxx/v1/read_preference-fwd.hpp b/src/mongocxx/include/mongocxx/v1/read_preference-fwd.hpp new file mode 100644 index 0000000000..d233266d42 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/read_preference-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class read_preference; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::read_preference. +/// diff --git a/src/mongocxx/include/mongocxx/v1/read_preference.hpp b/src/mongocxx/include/mongocxx/v1/read_preference.hpp new file mode 100644 index 0000000000..89cfd4c190 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/read_preference.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to a MongoDB Read Preference. +/// +/// @see +/// - [Read Preference (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/read-preference/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class read_preference {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::read_preference. +/// diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_options-fwd.hpp new file mode 100644 index 0000000000..4010016634 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/replace_one_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class replace_one_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::replace_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp new file mode 100644 index 0000000000..a60c938fd1 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "replaceOne" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class replace_one_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::replace_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_result-fwd.hpp new file mode 100644 index 0000000000..d901ed7add --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/replace_one_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class replace_one_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::replace_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp new file mode 100644 index 0000000000..f9d6429d3f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of a "replaceOne" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class replace_one_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::replace_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/return_document-fwd.hpp b/src/mongocxx/include/mongocxx/v1/return_document-fwd.hpp new file mode 100644 index 0000000000..7d6590b590 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/return_document-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +enum class return_document; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::return_document. +/// diff --git a/src/mongocxx/include/mongocxx/v1/return_document.hpp b/src/mongocxx/include/mongocxx/v1/return_document.hpp new file mode 100644 index 0000000000..08ffec753b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/return_document.hpp @@ -0,0 +1,42 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// `returnDocument` from the CRUD API specification. +/// +/// @see +/// - [CRUD API (MongoDB Specifications)](https://www.mongodb.com/docs/manual/reference/command/return_document/) +/// +enum class return_document {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::return_document. +/// diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options-fwd.hpp new file mode 100644 index 0000000000..589766de7b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class rewrap_many_datakey_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::rewrap_many_datakey_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp new file mode 100644 index 0000000000..e5045cc51d --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for a "rewrapManyDataKey" command. +/// +/// @see +/// - [Rotate and Rewrap Encryption Keys (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/manage-keys/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class rewrap_many_datakey_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::rewrap_many_datakey_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result-fwd.hpp new file mode 100644 index 0000000000..a5b5b27bbf --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class rewrap_many_datakey_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::rewrap_many_datakey_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp new file mode 100644 index 0000000000..bc61dd18b3 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of a "rewrapManyDataKey" command. +/// +/// @see +/// - [Rotate and Rewrap Encryption Keys (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/manage-keys/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class rewrap_many_datakey_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::rewrap_many_datakey_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/search_indexes-fwd.hpp b/src/mongocxx/include/mongocxx/v1/search_indexes-fwd.hpp new file mode 100644 index 0000000000..978548844e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/search_indexes-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class search_indexes; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::search_indexes. +/// diff --git a/src/mongocxx/include/mongocxx/v1/search_indexes.hpp b/src/mongocxx/include/mongocxx/v1/search_indexes.hpp new file mode 100644 index 0000000000..f6835c3108 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/search_indexes.hpp @@ -0,0 +1,56 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Support for MongoDB Atlas Search indexes. +/// +/// @note Not to be confused with collection indexes or Atlas Vector Search indexes. +/// +/// @see +/// - [Queries and Indexes (MongoDB Manual)](https://www.mongodb.com/docs/atlas/atlas-search/searching/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class search_indexes { + /// + /// A description of a MongoDB Atlas Search index. + /// + /// @see + /// - [Queries and Indexes (MongoDB Manual)](https://www.mongodb.com/docs/atlas/atlas-search/searching/) + /// + /// @attention This feature is experimental! It is not ready for use! + /// + class model {}; +}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::search_indexes. +/// diff --git a/src/mongocxx/include/mongocxx/v1/server_error-fwd.hpp b/src/mongocxx/include/mongocxx/v1/server_error-fwd.hpp new file mode 100644 index 0000000000..23dc75320a --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/server_error-fwd.hpp @@ -0,0 +1,36 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include + +namespace mongocxx { +namespace v1 { + +enum server_errc : int; + +class server_error; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::server_error. +/// diff --git a/src/mongocxx/include/mongocxx/v1/server_error.hpp b/src/mongocxx/include/mongocxx/v1/server_error.hpp new file mode 100644 index 0000000000..7ca8863492 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/server_error.hpp @@ -0,0 +1,46 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB server error. +/// +/// @important This class may contain both a client error code _and_ a server error code: +/// - Use `this->code()` to obtain the primary error code (which may equal `this->server_code()`). +/// - Use `this->server_code()` to obtain the server error code (which may equal `zero`). +/// Use @ref mongocxx::v1::source_errc to determine the origin of `this->code()`. +/// +/// @par Inherits: +/// - @ref mongocxx::v1::exception +/// +class server_error {}; + +} // namespace v1 +} // namespace mongocxx + +/// +/// @file +/// Provides @ref mongocxx::v1::server_error. +/// diff --git a/src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp b/src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp new file mode 100644 index 0000000000..9ce961e80d --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class stable_api; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::stable_api. +/// diff --git a/src/mongocxx/include/mongocxx/v1/stable_api.hpp b/src/mongocxx/include/mongocxx/v1/stable_api.hpp new file mode 100644 index 0000000000..5466582d0b --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/stable_api.hpp @@ -0,0 +1,42 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to MongoDB Stable API configuration. +/// +/// @see +/// - [Stable API (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/stable-api/) +/// +class stable_api {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::stable_api. +/// diff --git a/src/mongocxx/include/mongocxx/v1/tls-fwd.hpp b/src/mongocxx/include/mongocxx/v1/tls-fwd.hpp new file mode 100644 index 0000000000..c82bb63236 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/tls-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class tls; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::tls. +/// diff --git a/src/mongocxx/include/mongocxx/v1/tls.hpp b/src/mongocxx/include/mongocxx/v1/tls.hpp new file mode 100644 index 0000000000..a46b857995 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/tls.hpp @@ -0,0 +1,42 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to TLS configuration. +/// +/// @see +/// - [`tls` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/tls/) +/// +class tls {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::tls. +/// diff --git a/src/mongocxx/include/mongocxx/v1/transaction-fwd.hpp b/src/mongocxx/include/mongocxx/v1/transaction-fwd.hpp new file mode 100644 index 0000000000..c6b8b3d5f9 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/transaction-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class transaction; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::transaction. +/// diff --git a/src/mongocxx/include/mongocxx/v1/transaction.hpp b/src/mongocxx/include/mongocxx/v1/transaction.hpp new file mode 100644 index 0000000000..7bcb163159 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/transaction.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to a distributed transaction. +/// +/// @see +/// - [Transactions (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/transactions/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class transaction {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::transaction. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_many_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/update_many_options-fwd.hpp new file mode 100644 index 0000000000..2338ad45b5 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_many_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class update_many_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::update_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_many_options.hpp b/src/mongocxx/include/mongocxx/v1/update_many_options.hpp new file mode 100644 index 0000000000..cee979fbb7 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_many_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "updateMany" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class update_many_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::update_many_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_many_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/update_many_result-fwd.hpp new file mode 100644 index 0000000000..cf0c281c64 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_many_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class update_many_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::update_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_many_result.hpp b/src/mongocxx/include/mongocxx/v1/update_many_result.hpp new file mode 100644 index 0000000000..67b2494648 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_many_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of an "updateMany" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class update_many_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::update_many_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_one_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/update_one_options-fwd.hpp new file mode 100644 index 0000000000..8bdd2f300d --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_one_options-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class update_one_options; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::update_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_one_options.hpp b/src/mongocxx/include/mongocxx/v1/update_one_options.hpp new file mode 100644 index 0000000000..1e0b11b350 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_one_options.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options for an "updateOne" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class update_one_options {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::update_one_options. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_one_result-fwd.hpp b/src/mongocxx/include/mongocxx/v1/update_one_result-fwd.hpp new file mode 100644 index 0000000000..1746e0441f --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_one_result-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class update_one_result; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::update_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/update_one_result.hpp b/src/mongocxx/include/mongocxx/v1/update_one_result.hpp new file mode 100644 index 0000000000..f0efadb253 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/update_one_result.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// The result of an "updateOne" command. +/// +/// @see +/// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class update_one_result {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::update_one_result. +/// diff --git a/src/mongocxx/include/mongocxx/v1/uri-fwd.hpp b/src/mongocxx/include/mongocxx/v1/uri-fwd.hpp new file mode 100644 index 0000000000..1940ecb090 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/uri-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class uri; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::uri. +/// diff --git a/src/mongocxx/include/mongocxx/v1/uri.hpp b/src/mongocxx/include/mongocxx/v1/uri.hpp new file mode 100644 index 0000000000..d23a8a4e80 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/uri.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// A MongoDB connection string. +/// +/// @see +/// - [Connection Strings (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/connection-string/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class uri {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::uri. +/// diff --git a/src/mongocxx/include/mongocxx/v1/write_concern-fwd.hpp b/src/mongocxx/include/mongocxx/v1/write_concern-fwd.hpp new file mode 100644 index 0000000000..588e6df485 --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/write_concern-fwd.hpp @@ -0,0 +1,32 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace mongocxx { +namespace v1 { + +class write_concern; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Declares @ref mongocxx::v1::write_concern. +/// diff --git a/src/mongocxx/include/mongocxx/v1/write_concern.hpp b/src/mongocxx/include/mongocxx/v1/write_concern.hpp new file mode 100644 index 0000000000..aa07b17b3e --- /dev/null +++ b/src/mongocxx/include/mongocxx/v1/write_concern.hpp @@ -0,0 +1,44 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +// + +#include + +namespace mongocxx { +namespace v1 { + +/// +/// Options related to a MongoDB Write Concern. +/// +/// @see +/// - [Write Concern (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/write-concern/) +/// +/// @attention This feature is experimental! It is not ready for use! +/// +class write_concern {}; + +} // namespace v1 +} // namespace mongocxx + +#include + +/// +/// @file +/// Provides @ref mongocxx::v1::write_concern. +/// diff --git a/src/mongocxx/lib/CMakeLists.txt b/src/mongocxx/lib/CMakeLists.txt index 85728241dc..e2d1b8b9cf 100644 --- a/src/mongocxx/lib/CMakeLists.txt +++ b/src/mongocxx/lib/CMakeLists.txt @@ -121,11 +121,84 @@ set(mongocxx_sources_v_noabi ) set(mongocxx_sources_v1 + mongocxx/v1/aggregate_options.cpp + mongocxx/v1/apm.cpp + mongocxx/v1/auto_encryption.cpp + mongocxx/v1/bulk_write.cpp + mongocxx/v1/change_stream.cpp + mongocxx/v1/client_encryption.cpp + mongocxx/v1/client_session.cpp + mongocxx/v1/client.cpp + mongocxx/v1/collection.cpp mongocxx/v1/config/config.cpp mongocxx/v1/config/export.cpp mongocxx/v1/config/version.cpp + mongocxx/v1/count_options.cpp + mongocxx/v1/cursor.cpp + mongocxx/v1/data_key.cpp + mongocxx/v1/database.cpp + mongocxx/v1/delete_many_options.cpp + mongocxx/v1/delete_many_result.cpp + mongocxx/v1/delete_one_options.cpp + mongocxx/v1/delete_one_result.cpp mongocxx/v1/detail/postlude.cpp mongocxx/v1/detail/prelude.cpp + mongocxx/v1/distinct_options.cpp + mongocxx/v1/encrypt.cpp + mongocxx/v1/estimated_document_count_options.cpp + mongocxx/v1/events/command_failed.cpp + mongocxx/v1/events/command_started.cpp + mongocxx/v1/events/command_succeeded.cpp + mongocxx/v1/events/server_closed.cpp + mongocxx/v1/events/server_description_changed.cpp + mongocxx/v1/events/server_description.cpp + mongocxx/v1/events/server_heartbeat_failed.cpp + mongocxx/v1/events/server_heartbeat_started.cpp + mongocxx/v1/events/server_heartbeat_succeeded.cpp + mongocxx/v1/events/server_opening.cpp + mongocxx/v1/events/topology_closed.cpp + mongocxx/v1/events/topology_description_changed.cpp + mongocxx/v1/events/topology_description.cpp + mongocxx/v1/events/topology_opening.cpp + mongocxx/v1/exception.cpp + mongocxx/v1/find_one_and_delete_options.cpp + mongocxx/v1/find_one_and_replace_options.cpp + mongocxx/v1/find_one_and_update_options.cpp + mongocxx/v1/find_options.cpp + mongocxx/v1/gridfs/bucket.cpp + mongocxx/v1/gridfs/downloader.cpp + mongocxx/v1/gridfs/upload_options.cpp + mongocxx/v1/gridfs/upload_result.cpp + mongocxx/v1/gridfs/uploader.cpp + mongocxx/v1/hint.cpp + mongocxx/v1/indexes.cpp + mongocxx/v1/insert_many_options.cpp + mongocxx/v1/insert_many_result.cpp + mongocxx/v1/insert_one_options.cpp + mongocxx/v1/insert_one_result.cpp + mongocxx/v1/instance.cpp + mongocxx/v1/logger.cpp + mongocxx/v1/pipeline.cpp + mongocxx/v1/pool.cpp + mongocxx/v1/range.cpp + mongocxx/v1/read_concern.cpp + mongocxx/v1/read_preference.cpp + mongocxx/v1/replace_one_options.cpp + mongocxx/v1/replace_one_result.cpp + mongocxx/v1/return_document.cpp + mongocxx/v1/rewrap_many_datakey_options.cpp + mongocxx/v1/rewrap_many_datakey_result.cpp + mongocxx/v1/search_indexes.cpp + mongocxx/v1/server_error.cpp + mongocxx/v1/stable_api.cpp + mongocxx/v1/tls.cpp + mongocxx/v1/transaction.cpp + mongocxx/v1/update_many_options.cpp + mongocxx/v1/update_many_result.cpp + mongocxx/v1/update_one_options.cpp + mongocxx/v1/update_one_result.cpp + mongocxx/v1/uri.cpp + mongocxx/v1/write_concern.cpp ) list(APPEND mongocxx_sources diff --git a/src/mongocxx/lib/mongocxx/v1/aggregate_options.cpp b/src/mongocxx/lib/mongocxx/v1/aggregate_options.cpp new file mode 100644 index 0000000000..ce960bf853 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/aggregate_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/apm.cpp b/src/mongocxx/lib/mongocxx/v1/apm.cpp new file mode 100644 index 0000000000..b6c003f236 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/apm.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/auto_encryption.cpp b/src/mongocxx/lib/mongocxx/v1/auto_encryption.cpp new file mode 100644 index 0000000000..8ed867b16c --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/auto_encryption.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/bulk_write.cpp b/src/mongocxx/lib/mongocxx/v1/bulk_write.cpp new file mode 100644 index 0000000000..f4a736d035 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/bulk_write.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/change_stream.cpp b/src/mongocxx/lib/mongocxx/v1/change_stream.cpp new file mode 100644 index 0000000000..bfefbc623e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/change_stream.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/client.cpp b/src/mongocxx/lib/mongocxx/v1/client.cpp new file mode 100644 index 0000000000..aa94c84363 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/client.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/client_encryption.cpp b/src/mongocxx/lib/mongocxx/v1/client_encryption.cpp new file mode 100644 index 0000000000..3ab815821c --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/client_encryption.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/client_session.cpp b/src/mongocxx/lib/mongocxx/v1/client_session.cpp new file mode 100644 index 0000000000..48ccc4ec29 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/client_session.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/collection.cpp b/src/mongocxx/lib/mongocxx/v1/collection.cpp new file mode 100644 index 0000000000..3f05ff5e0c --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/collection.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/count_options.cpp b/src/mongocxx/lib/mongocxx/v1/count_options.cpp new file mode 100644 index 0000000000..f5516db5ec --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/count_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/cursor.cpp b/src/mongocxx/lib/mongocxx/v1/cursor.cpp new file mode 100644 index 0000000000..7f365eee6f --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/cursor.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/data_key.cpp b/src/mongocxx/lib/mongocxx/v1/data_key.cpp new file mode 100644 index 0000000000..acabcf1aa9 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/data_key.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/database.cpp b/src/mongocxx/lib/mongocxx/v1/database.cpp new file mode 100644 index 0000000000..7398ba28f8 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/database.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/delete_many_options.cpp b/src/mongocxx/lib/mongocxx/v1/delete_many_options.cpp new file mode 100644 index 0000000000..33f29efb25 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/delete_many_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/delete_many_result.cpp b/src/mongocxx/lib/mongocxx/v1/delete_many_result.cpp new file mode 100644 index 0000000000..bdd419f400 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/delete_many_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/delete_one_options.cpp b/src/mongocxx/lib/mongocxx/v1/delete_one_options.cpp new file mode 100644 index 0000000000..a2ed7fd572 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/delete_one_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/delete_one_result.cpp b/src/mongocxx/lib/mongocxx/v1/delete_one_result.cpp new file mode 100644 index 0000000000..31f430e41c --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/delete_one_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/distinct_options.cpp b/src/mongocxx/lib/mongocxx/v1/distinct_options.cpp new file mode 100644 index 0000000000..41422561d3 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/distinct_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/encrypt.cpp b/src/mongocxx/lib/mongocxx/v1/encrypt.cpp new file mode 100644 index 0000000000..5acbd1b8b8 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/encrypt.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/estimated_document_count_options.cpp b/src/mongocxx/lib/mongocxx/v1/estimated_document_count_options.cpp new file mode 100644 index 0000000000..24e018e182 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/estimated_document_count_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/command_failed.cpp b/src/mongocxx/lib/mongocxx/v1/events/command_failed.cpp new file mode 100644 index 0000000000..5b69570be2 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/command_failed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/command_started.cpp b/src/mongocxx/lib/mongocxx/v1/events/command_started.cpp new file mode 100644 index 0000000000..08ec712f48 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/command_started.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/command_succeeded.cpp b/src/mongocxx/lib/mongocxx/v1/events/command_succeeded.cpp new file mode 100644 index 0000000000..458ad5d19e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/command_succeeded.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_closed.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_closed.cpp new file mode 100644 index 0000000000..50b50a34de --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_closed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_description.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_description.cpp new file mode 100644 index 0000000000..663da5d6e2 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_description.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_description_changed.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_description_changed.cpp new file mode 100644 index 0000000000..65ca4a77a7 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_description_changed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_failed.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_failed.cpp new file mode 100644 index 0000000000..d441ef77d8 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_failed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_started.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_started.cpp new file mode 100644 index 0000000000..0361dd2ff7 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_started.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_succeeded.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_succeeded.cpp new file mode 100644 index 0000000000..ea644d9f8a --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_heartbeat_succeeded.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/server_opening.cpp b/src/mongocxx/lib/mongocxx/v1/events/server_opening.cpp new file mode 100644 index 0000000000..c7843323ab --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/server_opening.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/topology_closed.cpp b/src/mongocxx/lib/mongocxx/v1/events/topology_closed.cpp new file mode 100644 index 0000000000..0a280dc670 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/topology_closed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/topology_description.cpp b/src/mongocxx/lib/mongocxx/v1/events/topology_description.cpp new file mode 100644 index 0000000000..0cb11dc09e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/topology_description.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/topology_description_changed.cpp b/src/mongocxx/lib/mongocxx/v1/events/topology_description_changed.cpp new file mode 100644 index 0000000000..c014711679 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/topology_description_changed.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/events/topology_opening.cpp b/src/mongocxx/lib/mongocxx/v1/events/topology_opening.cpp new file mode 100644 index 0000000000..35a14f3139 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/events/topology_opening.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/exception.cpp b/src/mongocxx/lib/mongocxx/v1/exception.cpp new file mode 100644 index 0000000000..38ad005621 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/exception.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/find_one_and_delete_options.cpp b/src/mongocxx/lib/mongocxx/v1/find_one_and_delete_options.cpp new file mode 100644 index 0000000000..f0cb290c23 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/find_one_and_delete_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/find_one_and_replace_options.cpp b/src/mongocxx/lib/mongocxx/v1/find_one_and_replace_options.cpp new file mode 100644 index 0000000000..150a9837dd --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/find_one_and_replace_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/find_one_and_update_options.cpp b/src/mongocxx/lib/mongocxx/v1/find_one_and_update_options.cpp new file mode 100644 index 0000000000..8d1baee10e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/find_one_and_update_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/find_options.cpp b/src/mongocxx/lib/mongocxx/v1/find_options.cpp new file mode 100644 index 0000000000..789e54ace7 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/find_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/gridfs/bucket.cpp b/src/mongocxx/lib/mongocxx/v1/gridfs/bucket.cpp new file mode 100644 index 0000000000..7d7d858c61 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/gridfs/bucket.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/gridfs/downloader.cpp b/src/mongocxx/lib/mongocxx/v1/gridfs/downloader.cpp new file mode 100644 index 0000000000..401d9d1d64 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/gridfs/downloader.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/gridfs/upload_options.cpp b/src/mongocxx/lib/mongocxx/v1/gridfs/upload_options.cpp new file mode 100644 index 0000000000..8a30b18f6a --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/gridfs/upload_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/gridfs/upload_result.cpp b/src/mongocxx/lib/mongocxx/v1/gridfs/upload_result.cpp new file mode 100644 index 0000000000..e836cd497e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/gridfs/upload_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/gridfs/uploader.cpp b/src/mongocxx/lib/mongocxx/v1/gridfs/uploader.cpp new file mode 100644 index 0000000000..f828d03a7c --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/gridfs/uploader.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/hint.cpp b/src/mongocxx/lib/mongocxx/v1/hint.cpp new file mode 100644 index 0000000000..f42661e32b --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/hint.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/indexes.cpp b/src/mongocxx/lib/mongocxx/v1/indexes.cpp new file mode 100644 index 0000000000..eec65d28de --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/indexes.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/insert_many_options.cpp b/src/mongocxx/lib/mongocxx/v1/insert_many_options.cpp new file mode 100644 index 0000000000..7be00b39b0 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/insert_many_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/insert_many_result.cpp b/src/mongocxx/lib/mongocxx/v1/insert_many_result.cpp new file mode 100644 index 0000000000..4bc85d5cc0 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/insert_many_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/insert_one_options.cpp b/src/mongocxx/lib/mongocxx/v1/insert_one_options.cpp new file mode 100644 index 0000000000..0820d1bb3a --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/insert_one_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/insert_one_result.cpp b/src/mongocxx/lib/mongocxx/v1/insert_one_result.cpp new file mode 100644 index 0000000000..d327f80d2e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/insert_one_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/instance.cpp b/src/mongocxx/lib/mongocxx/v1/instance.cpp new file mode 100644 index 0000000000..82b5800947 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/instance.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/logger.cpp b/src/mongocxx/lib/mongocxx/v1/logger.cpp new file mode 100644 index 0000000000..d1a70367cd --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/logger.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/pipeline.cpp b/src/mongocxx/lib/mongocxx/v1/pipeline.cpp new file mode 100644 index 0000000000..a37b51f0d3 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/pipeline.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/pool.cpp b/src/mongocxx/lib/mongocxx/v1/pool.cpp new file mode 100644 index 0000000000..b247aa8b4d --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/pool.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/range.cpp b/src/mongocxx/lib/mongocxx/v1/range.cpp new file mode 100644 index 0000000000..e321481bfa --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/range.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/read_concern.cpp b/src/mongocxx/lib/mongocxx/v1/read_concern.cpp new file mode 100644 index 0000000000..caaab1f89e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/read_concern.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/read_preference.cpp b/src/mongocxx/lib/mongocxx/v1/read_preference.cpp new file mode 100644 index 0000000000..c953cde00a --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/read_preference.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/replace_one_options.cpp b/src/mongocxx/lib/mongocxx/v1/replace_one_options.cpp new file mode 100644 index 0000000000..197b73a98a --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/replace_one_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/replace_one_result.cpp b/src/mongocxx/lib/mongocxx/v1/replace_one_result.cpp new file mode 100644 index 0000000000..74e9b7bfaf --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/replace_one_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/return_document.cpp b/src/mongocxx/lib/mongocxx/v1/return_document.cpp new file mode 100644 index 0000000000..481c23af9e --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/return_document.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_options.cpp b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_options.cpp new file mode 100644 index 0000000000..47cb5bbec5 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp new file mode 100644 index 0000000000..47cb5bbec5 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/search_indexes.cpp b/src/mongocxx/lib/mongocxx/v1/search_indexes.cpp new file mode 100644 index 0000000000..add3a180da --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/search_indexes.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/server_error.cpp b/src/mongocxx/lib/mongocxx/v1/server_error.cpp new file mode 100644 index 0000000000..4e03449e62 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/server_error.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/stable_api.cpp b/src/mongocxx/lib/mongocxx/v1/stable_api.cpp new file mode 100644 index 0000000000..8591597cfd --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/stable_api.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/tls.cpp b/src/mongocxx/lib/mongocxx/v1/tls.cpp new file mode 100644 index 0000000000..19f82c4195 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/tls.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/transaction.cpp b/src/mongocxx/lib/mongocxx/v1/transaction.cpp new file mode 100644 index 0000000000..298cf03a14 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/transaction.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/update_many_options.cpp b/src/mongocxx/lib/mongocxx/v1/update_many_options.cpp new file mode 100644 index 0000000000..b5d28b4606 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/update_many_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/update_many_result.cpp b/src/mongocxx/lib/mongocxx/v1/update_many_result.cpp new file mode 100644 index 0000000000..fdd6227a11 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/update_many_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/update_one_options.cpp b/src/mongocxx/lib/mongocxx/v1/update_one_options.cpp new file mode 100644 index 0000000000..3907ce40f2 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/update_one_options.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/update_one_result.cpp b/src/mongocxx/lib/mongocxx/v1/update_one_result.cpp new file mode 100644 index 0000000000..2e11d542ba --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/update_one_result.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/uri.cpp b/src/mongocxx/lib/mongocxx/v1/uri.cpp new file mode 100644 index 0000000000..a5802ea934 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/uri.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include diff --git a/src/mongocxx/lib/mongocxx/v1/write_concern.cpp b/src/mongocxx/lib/mongocxx/v1/write_concern.cpp new file mode 100644 index 0000000000..dc67d7aef1 --- /dev/null +++ b/src/mongocxx/lib/mongocxx/v1/write_concern.cpp @@ -0,0 +1,15 @@ +// Copyright 2009-present MongoDB, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include From a11fb77a5276992f7177d076bf8ee5e9be043e2f Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:19 -0500 Subject: [PATCH 02/13] Add developer notes referencing relevant specifications --- src/mongocxx/include/mongocxx/v1/encrypt.hpp | 5 ++++- src/mongocxx/include/mongocxx/v1/indexes.hpp | 13 +++++++++++-- src/mongocxx/include/mongocxx/v1/stable_api.hpp | 5 ++++- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/encrypt.hpp b/src/mongocxx/include/mongocxx/v1/encrypt.hpp index 863b354fba..66e0b6c68d 100644 --- a/src/mongocxx/include/mongocxx/v1/encrypt.hpp +++ b/src/mongocxx/include/mongocxx/v1/encrypt.hpp @@ -33,7 +33,10 @@ namespace v1 { /// /// @attention This feature is experimental! It is not ready for use! /// -class encrypt {}; +class encrypt { + // This class implements `EncryptOpts`: + // - https://specifications.readthedocs.io/en/latest/client-side-encryption/client-side-encryption/ +}; } // namespace v1 } // namespace mongocxx diff --git a/src/mongocxx/include/mongocxx/v1/indexes.hpp b/src/mongocxx/include/mongocxx/v1/indexes.hpp index 5ec493e2d5..5a82652dac 100644 --- a/src/mongocxx/include/mongocxx/v1/indexes.hpp +++ b/src/mongocxx/include/mongocxx/v1/indexes.hpp @@ -34,6 +34,9 @@ namespace v1 { /// @attention This feature is experimental! It is not ready for use! /// class indexes { + // This class implements `IndexView` ("Index View API"): + // - https://specifications.readthedocs.io/en/latest/index-management/index-management/ + public: /// /// A description of a MongoDB index. @@ -43,14 +46,20 @@ class indexes { /// /// @attention This feature is experimental! It is not ready for use! /// - class model {}; + class model { + // This class implements `IndexModel` ("Index View API"): + // - https://specifications.readthedocs.io/en/latest/index-management/index-management/ + }; /// /// Options for @ref mongocxx::v1::indexes. /// /// @attention This feature is experimental! It is not ready for use! /// - class options {}; + class options { + // This class implements `IndexOptions` ("Index View API"): + // - https://specifications.readthedocs.io/en/latest/index-management/index-management/ + }; }; } // namespace v1 diff --git a/src/mongocxx/include/mongocxx/v1/stable_api.hpp b/src/mongocxx/include/mongocxx/v1/stable_api.hpp index 5466582d0b..734220dd13 100644 --- a/src/mongocxx/include/mongocxx/v1/stable_api.hpp +++ b/src/mongocxx/include/mongocxx/v1/stable_api.hpp @@ -29,7 +29,10 @@ namespace v1 { /// @see /// - [Stable API (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/stable-api/) /// -class stable_api {}; +class stable_api { + // This class implements `ServerApi`: + // - https://specifications.readthedocs.io/en/latest/versioned-api/versioned-api/ +}; } // namespace v1 } // namespace mongocxx From 17d401f6d955993e9f891e9dbbd89964b8bd575d Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:19 -0500 Subject: [PATCH 03/13] Rename: stable_api -> server_api --- .../mongocxx/v1/{stable_api-fwd.hpp => server_api-fwd.hpp} | 4 ++-- .../include/mongocxx/v1/{stable_api.hpp => server_api.hpp} | 6 +++--- src/mongocxx/lib/CMakeLists.txt | 2 +- .../lib/mongocxx/v1/{stable_api.cpp => server_api.cpp} | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/mongocxx/include/mongocxx/v1/{stable_api-fwd.hpp => server_api-fwd.hpp} (92%) rename src/mongocxx/include/mongocxx/v1/{stable_api.hpp => server_api.hpp} (91%) rename src/mongocxx/lib/mongocxx/v1/{stable_api.cpp => server_api.cpp} (93%) diff --git a/src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp b/src/mongocxx/include/mongocxx/v1/server_api-fwd.hpp similarity index 92% rename from src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp rename to src/mongocxx/include/mongocxx/v1/server_api-fwd.hpp index 9ce961e80d..c18c5a59a1 100644 --- a/src/mongocxx/include/mongocxx/v1/stable_api-fwd.hpp +++ b/src/mongocxx/include/mongocxx/v1/server_api-fwd.hpp @@ -19,7 +19,7 @@ namespace mongocxx { namespace v1 { -class stable_api; +class server_api; } // namespace v1 } // namespace mongocxx @@ -28,5 +28,5 @@ class stable_api; /// /// @file -/// Declares @ref mongocxx::v1::stable_api. +/// Declares @ref mongocxx::v1::server_api. /// diff --git a/src/mongocxx/include/mongocxx/v1/stable_api.hpp b/src/mongocxx/include/mongocxx/v1/server_api.hpp similarity index 91% rename from src/mongocxx/include/mongocxx/v1/stable_api.hpp rename to src/mongocxx/include/mongocxx/v1/server_api.hpp index 734220dd13..91b19027fd 100644 --- a/src/mongocxx/include/mongocxx/v1/stable_api.hpp +++ b/src/mongocxx/include/mongocxx/v1/server_api.hpp @@ -14,7 +14,7 @@ #pragma once -#include +#include // @@ -29,7 +29,7 @@ namespace v1 { /// @see /// - [Stable API (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/stable-api/) /// -class stable_api { +class server_api { // This class implements `ServerApi`: // - https://specifications.readthedocs.io/en/latest/versioned-api/versioned-api/ }; @@ -41,5 +41,5 @@ class stable_api { /// /// @file -/// Provides @ref mongocxx::v1::stable_api. +/// Provides @ref mongocxx::v1::server_api. /// diff --git a/src/mongocxx/lib/CMakeLists.txt b/src/mongocxx/lib/CMakeLists.txt index e2d1b8b9cf..fbf89fac90 100644 --- a/src/mongocxx/lib/CMakeLists.txt +++ b/src/mongocxx/lib/CMakeLists.txt @@ -189,8 +189,8 @@ set(mongocxx_sources_v1 mongocxx/v1/rewrap_many_datakey_options.cpp mongocxx/v1/rewrap_many_datakey_result.cpp mongocxx/v1/search_indexes.cpp + mongocxx/v1/server_api.cpp mongocxx/v1/server_error.cpp - mongocxx/v1/stable_api.cpp mongocxx/v1/tls.cpp mongocxx/v1/transaction.cpp mongocxx/v1/update_many_options.cpp diff --git a/src/mongocxx/lib/mongocxx/v1/stable_api.cpp b/src/mongocxx/lib/mongocxx/v1/server_api.cpp similarity index 93% rename from src/mongocxx/lib/mongocxx/v1/stable_api.cpp rename to src/mongocxx/lib/mongocxx/v1/server_api.cpp index 8591597cfd..db7813ec12 100644 --- a/src/mongocxx/lib/mongocxx/v1/stable_api.cpp +++ b/src/mongocxx/lib/mongocxx/v1/server_api.cpp @@ -12,4 +12,4 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include From e5ed97a45c89ec024bcdd3d4ffcd272489ec981f Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:19 -0500 Subject: [PATCH 04/13] Add reference to mongoc APM docs --- src/mongocxx/include/mongocxx/v1/apm.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mongocxx/include/mongocxx/v1/apm.hpp b/src/mongocxx/include/mongocxx/v1/apm.hpp index 40c5797d38..f8cb6da874 100644 --- a/src/mongocxx/include/mongocxx/v1/apm.hpp +++ b/src/mongocxx/include/mongocxx/v1/apm.hpp @@ -27,6 +27,7 @@ namespace v1 { /// Options related to Application Performance Monitoring (APM) configuration. /// /// @see +/// - [Application Performance Monitoring (mongoc)](https://mongoc.org/libmongoc/current/application-performance-monitoring.html) /// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) /// - [SDAM Logging and Monitoring Specification (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring/) /// From 5f594d4690e18b95ca3fb2b9e4830ea8bddfb0f0 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:19 -0500 Subject: [PATCH 05/13] Fix reference to In-Use Encryption options --- src/mongocxx/include/mongocxx/v1/auto_encryption.hpp | 2 +- src/mongocxx/include/mongocxx/v1/data_key.hpp | 2 +- src/mongocxx/include/mongocxx/v1/encrypt.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp b/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp index e4b2986aad..a1c41a55b6 100644 --- a/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp +++ b/src/mongocxx/include/mongocxx/v1/auto_encryption.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options related Queryable Encryption configuration. +/// Options related In-Use Encryption configuration. /// /// @see /// - [MongoClient Options for Queryable Encryption (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/reference/qe-options-clients/) diff --git a/src/mongocxx/include/mongocxx/v1/data_key.hpp b/src/mongocxx/include/mongocxx/v1/data_key.hpp index e44ae69ac8..487084b661 100644 --- a/src/mongocxx/include/mongocxx/v1/data_key.hpp +++ b/src/mongocxx/include/mongocxx/v1/data_key.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// A Data Encryption Key (DEK) for CSFLE and Queryable Encryption. +/// A Data Encryption Key (DEK) for In-Use Encryption. /// /// @see /// - [Encryption Keys and Key Vaults (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/keys-key-vaults/) diff --git a/src/mongocxx/include/mongocxx/v1/encrypt.hpp b/src/mongocxx/include/mongocxx/v1/encrypt.hpp index 66e0b6c68d..a956b70774 100644 --- a/src/mongocxx/include/mongocxx/v1/encrypt.hpp +++ b/src/mongocxx/include/mongocxx/v1/encrypt.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options related to field encryption for CSFLE and Queryable Encryption. +/// Options related to explicit encryption for In-Use Encryption. /// /// @see /// - [Fields and Encryption Types (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/csfle/fundamentals/encryption-algorithms/) From 872bc34a70fab33404fcaa1a716561dbaf7bb639 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 06/13] Bulk write operations may be unordered --- src/mongocxx/include/mongocxx/v1/bulk_write.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongocxx/include/mongocxx/v1/bulk_write.hpp b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp index e08f2d4b71..7b239afd2b 100644 --- a/src/mongocxx/include/mongocxx/v1/bulk_write.hpp +++ b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp @@ -20,7 +20,7 @@ namespace mongocxx { namespace v1 { /// -/// An ordered list of bulk write operations. +/// A list of bulk write operations. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) From ac52692b248db90fb13e19cd369a2a214d37b008 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 07/13] Refer to individual write operations without "bulk" --- .../include/mongocxx/v1/bulk_write.hpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/bulk_write.hpp b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp index 7b239afd2b..c08e249fec 100644 --- a/src/mongocxx/include/mongocxx/v1/bulk_write.hpp +++ b/src/mongocxx/include/mongocxx/v1/bulk_write.hpp @@ -31,12 +31,12 @@ namespace v1 { class bulk_write { public: /// - /// Enumeration identifying the type of a bulk write operation. + /// Enumeration identifying the type of a write operation. /// enum class type {}; /// - /// A single "Insert One" bulk write operation. + /// A single "Insert One" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -46,7 +46,7 @@ class bulk_write { class insert_one {}; /// - /// A single "Update One" bulk write operation. + /// A single "Update One" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -56,7 +56,7 @@ class bulk_write { class update_one {}; /// - /// A single "Update Many" bulk write operation. + /// A single "Update Many" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -66,7 +66,7 @@ class bulk_write { class update_many {}; /// - /// A single "Replace One" bulk write operation. + /// A single "Replace One" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -76,7 +76,7 @@ class bulk_write { class replace_one {}; /// - /// A single "Delete One" bulk write operation. + /// A single "Delete One" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -86,7 +86,7 @@ class bulk_write { class delete_one {}; /// - /// A single "Delete Many" bulk write operation. + /// A single "Delete Many" write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -96,7 +96,7 @@ class bulk_write { class delete_many {}; /// - /// A single bulk write operation. + /// A single write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -107,7 +107,7 @@ class bulk_write { class single {}; /// - /// Options for a bulk write operation. + /// Options for a write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -118,7 +118,7 @@ class bulk_write { class options {}; /// - /// The result of a bulk write operation. + /// The result of a write operation. /// /// @see /// - [Bulk Write Operations (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/bulk-write-operations/) @@ -134,5 +134,5 @@ class bulk_write { /// /// @file -/// Provides entities related to bulk write operations. +/// Provides entities related to write operations. /// From 5e93fadfb33dea60bc7f948f2d44fc93f44d797b Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 08/13] Do not mix up DB commands with complex operations --- src/mongocxx/include/mongocxx/v1/count_options.hpp | 4 ++-- .../include/mongocxx/v1/estimated_document_count_options.hpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/count_options.hpp b/src/mongocxx/include/mongocxx/v1/count_options.hpp index 7c0f30ac80..4bda3df162 100644 --- a/src/mongocxx/include/mongocxx/v1/count_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/count_options.hpp @@ -24,10 +24,10 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "count" command. +/// Options for a "countDocuments" operation. /// /// @see -/// - [`count` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/count/) +/// - [CRUD API (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/crud/crud/) /// /// @attention This feature is experimental! It is not ready for use! /// diff --git a/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp index 5544718a25..a5006e761a 100644 --- a/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/estimated_document_count_options.hpp @@ -24,10 +24,11 @@ namespace mongocxx { namespace v1 { /// -/// Options for an "estimatedDocumentCount" command. +/// Options for an "estimatedDocumentCount" operation. /// /// @see -/// - [`count` (database stage) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/count/) +/// - [CRUD API (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/crud/crud/) +/// - [`count` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/count/) /// class estimated_document_count_options {}; From fec91da34ae0b0822739dcb61b37bfb7815a2def Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 09/13] Remove reference to CMAP spec for command*Events --- src/mongocxx/include/mongocxx/v1/events/command_failed.hpp | 2 -- src/mongocxx/include/mongocxx/v1/events/command_started.hpp | 2 -- src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp b/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp index 88c182117a..c0ec2f898d 100644 --- a/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp +++ b/src/mongocxx/include/mongocxx/v1/events/command_failed.hpp @@ -27,8 +27,6 @@ namespace events { /// /// `CommandFailedEvent` from the Command Logging and Monitoring specification. /// -/// @important This interface does NOT fully conform to the CMAP specification! -/// /// @see /// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) /// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_started.hpp b/src/mongocxx/include/mongocxx/v1/events/command_started.hpp index 385f08abad..a5f9c41d37 100644 --- a/src/mongocxx/include/mongocxx/v1/events/command_started.hpp +++ b/src/mongocxx/include/mongocxx/v1/events/command_started.hpp @@ -27,8 +27,6 @@ namespace events { /// /// `CommandStartedEvent` from the Command Logging and Monitoring specification. /// -/// @important This interface does NOT fully conform to the CMAP specification! -/// /// @see /// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) /// diff --git a/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp b/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp index 7c1a86adfa..534e3763c0 100644 --- a/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp +++ b/src/mongocxx/include/mongocxx/v1/events/command_succeeded.hpp @@ -27,8 +27,6 @@ namespace events { /// /// `CommandSucceededEvent` from the Command Logging and Monitoring specification. /// -/// @important This interface does NOT fully conform to the CMAP specification! -/// /// @see /// - [Command Logging and Monitoring (MongoDB Specifications)](https://specifications.readthedocs.io/en/latest/command-logging-and-monitoring/command-logging-and-monitoring/) /// From ce814496e229114223d8bd5ddce27727f672f79d Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 10/13] Replace "command" -> "operation" for non-db-commands --- src/mongocxx/include/mongocxx/v1/delete_many_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/delete_many_result.hpp | 2 +- src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp | 2 +- src/mongocxx/include/mongocxx/v1/delete_one_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/delete_one_result.hpp | 2 +- .../include/mongocxx/v1/find_one_and_delete_options.hpp | 2 +- .../include/mongocxx/v1/find_one_and_replace_options.hpp | 2 +- .../include/mongocxx/v1/find_one_and_update_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/find_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/insert_many_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/insert_many_result.hpp | 2 +- src/mongocxx/include/mongocxx/v1/insert_one_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/insert_one_result.hpp | 2 +- src/mongocxx/include/mongocxx/v1/replace_one_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/replace_one_result.hpp | 2 +- .../include/mongocxx/v1/rewrap_many_datakey_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp | 2 +- src/mongocxx/include/mongocxx/v1/update_many_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/update_many_result.hpp | 2 +- src/mongocxx/include/mongocxx/v1/update_one_options.hpp | 2 +- src/mongocxx/include/mongocxx/v1/update_one_result.hpp | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp index c5a09a5c80..486ab411c8 100644 --- a/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/delete_many_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "deleteMany" command. +/// Options for a "deleteMany" operation. /// /// @see /// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp b/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp index a496e55a74..b46434a78b 100644 --- a/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/delete_many_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of a "deleteMany" command. +/// The result of a "deleteMany" operation. /// /// @see /// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp index cf6b3c845a..c370f598c8 100644 --- a/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp +++ b/src/mongocxx/include/mongocxx/v1/delete_one_options-fwd.hpp @@ -20,7 +20,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "deleteOne" command. +/// Options for a "deleteOne" operation. /// /// @see /// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp index 0c5075910f..022c67ce39 100644 --- a/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/delete_one_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "deleteOne" command. +/// Options for a "deleteOne" operation. /// /// @see /// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp b/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp index d4356012ce..94d0f70837 100644 --- a/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/delete_one_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of a "deleteOne" command. +/// The result of a "deleteOne" operation. /// /// @see /// - [Delete Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/delete-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp index 970e20fada..cb2c8a27e7 100644 --- a/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_delete_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "findOneAndDelete" command. +/// Options for a "findOneAndDelete" operation. /// /// @see /// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp index 5e17065225..3d089d3424 100644 --- a/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_replace_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "findOneAndReplace" command. +/// Options for a "findOneAndReplace" operation. /// /// @see /// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) diff --git a/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp index dffb712c4e..f5bef75d2b 100644 --- a/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/find_one_and_update_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "findOneAndUpdate" command. +/// Options for a "findOneAndUpdate" operation. /// /// @see /// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) diff --git a/src/mongocxx/include/mongocxx/v1/find_options.hpp b/src/mongocxx/include/mongocxx/v1/find_options.hpp index 67bd99ae2c..4178ecea66 100644 --- a/src/mongocxx/include/mongocxx/v1/find_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/find_options.hpp @@ -27,7 +27,7 @@ namespace v1 { /// Options for a "find" command. /// /// @see -/// - [Query Documents (MongoDB Manual)](https://www.mongodb.com/docs/manual/tutorial/query-documents/) +/// - [`find` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/find/) /// /// @attention This feature is experimental! It is not ready for use! /// diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp index 7741b177c1..ba97e03dac 100644 --- a/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/insert_many_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for an "insertMany" command. +/// Options for an "insertMany" operation. /// /// @see /// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp b/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp index f02b92e7f0..bebb6ad5ec 100644 --- a/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/insert_many_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of an "insertMany" command. +/// The result of an "insertMany" operation. /// /// @see /// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp index b3b3cd3af0..64982fe0ca 100644 --- a/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/insert_one_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for an "insertOne" command. +/// Options for an "insertOne" operation. /// /// @see /// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp b/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp index 6e095255e4..4c00ce09b4 100644 --- a/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/insert_one_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of an "insertOne" command. +/// The result of an "insertOne" operation. /// /// @see /// - [Insert Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/insert-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp index a60c938fd1..9fae0560bd 100644 --- a/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/replace_one_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "replaceOne" command. +/// Options for a "replaceOne" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp b/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp index f9d6429d3f..843e47ffb4 100644 --- a/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/replace_one_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of a "replaceOne" command. +/// The result of a "replaceOne" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp index e5045cc51d..d67d3e30c6 100644 --- a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for a "rewrapManyDataKey" command. +/// Options for a "rewrapManyDataKey" operation. /// /// @see /// - [Rotate and Rewrap Encryption Keys (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/manage-keys/) diff --git a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp index bc61dd18b3..cf94b863e1 100644 --- a/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/rewrap_many_datakey_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of a "rewrapManyDataKey" command. +/// The result of a "rewrapManyDataKey" operation. /// /// @see /// - [Rotate and Rewrap Encryption Keys (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/manage-keys/) diff --git a/src/mongocxx/include/mongocxx/v1/update_many_options.hpp b/src/mongocxx/include/mongocxx/v1/update_many_options.hpp index cee979fbb7..6d20a3ebbd 100644 --- a/src/mongocxx/include/mongocxx/v1/update_many_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/update_many_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for an "updateMany" command. +/// Options for an "updateMany" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/update_many_result.hpp b/src/mongocxx/include/mongocxx/v1/update_many_result.hpp index 67b2494648..d05c3959af 100644 --- a/src/mongocxx/include/mongocxx/v1/update_many_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/update_many_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of an "updateMany" command. +/// The result of an "updateMany" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/update_one_options.hpp b/src/mongocxx/include/mongocxx/v1/update_one_options.hpp index 1e0b11b350..ea4d4ab621 100644 --- a/src/mongocxx/include/mongocxx/v1/update_one_options.hpp +++ b/src/mongocxx/include/mongocxx/v1/update_one_options.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// Options for an "updateOne" command. +/// Options for an "updateOne" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) diff --git a/src/mongocxx/include/mongocxx/v1/update_one_result.hpp b/src/mongocxx/include/mongocxx/v1/update_one_result.hpp index f0efadb253..ebf3df6aa3 100644 --- a/src/mongocxx/include/mongocxx/v1/update_one_result.hpp +++ b/src/mongocxx/include/mongocxx/v1/update_one_result.hpp @@ -24,7 +24,7 @@ namespace mongocxx { namespace v1 { /// -/// The result of an "updateOne" command. +/// The result of an "updateOne" operation. /// /// @see /// - [Update Methods (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/update-methods/) From a9e0160b1592516e478f2d03e7077e5298ad2511 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 11/13] Fix doc typos --- src/mongocxx/include/mongocxx/v1/hint-fwd.hpp | 2 +- src/mongocxx/include/mongocxx/v1/instance.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp b/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp index 3a3c60ebc0..4eecbaa445 100644 --- a/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp +++ b/src/mongocxx/include/mongocxx/v1/hint-fwd.hpp @@ -28,5 +28,5 @@ class hint; /// /// @file -/// Declares @ref mongocxx::v1::read_concern. +/// Declares @ref mongocxx::v1::hint. /// diff --git a/src/mongocxx/include/mongocxx/v1/instance.hpp b/src/mongocxx/include/mongocxx/v1/instance.hpp index 90b02e8356..90f276f9b4 100644 --- a/src/mongocxx/include/mongocxx/v1/instance.hpp +++ b/src/mongocxx/include/mongocxx/v1/instance.hpp @@ -28,8 +28,8 @@ namespace v1 { /// /// @attention This feature is experimental! It is not ready for use! /// -/// All mongocxx API **MUST** be used within the lifetime of the instance object, with special exemptions listed below. -/// Only **ONE** instance object may exist for the lifetime of a given process. It is undefined behavior to use the +/// All mongocxx API **MUST** be used within the lifetime of the instance object, with special exemptions listed below. +/// Only **ONE** instance object may exist for the lifetime of a given process. It is undefined behavior to use the /// mongocxx API _before_ the instance object is initialized or _after_ the instance object is destroyed. It is /// undefined behavior to create more than one instance object. /// From 5506725e77feed57c45618f00bdc29adb43be45d Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 12/13] Fix reference to TLS/SSL docs --- src/mongocxx/include/mongocxx/v1/tls.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongocxx/include/mongocxx/v1/tls.hpp b/src/mongocxx/include/mongocxx/v1/tls.hpp index a46b857995..1162f9a266 100644 --- a/src/mongocxx/include/mongocxx/v1/tls.hpp +++ b/src/mongocxx/include/mongocxx/v1/tls.hpp @@ -27,7 +27,7 @@ namespace v1 { /// Options related to TLS configuration. /// /// @see -/// - [`tls` (database command) (MongoDB Manual)](https://www.mongodb.com/docs/manual/reference/command/tls/) +/// - [TLS/SSL (Transport Encryption) (MongoDB Manual)](https://www.mongodb.com/docs/manual/core/security-transport-encryption/) /// class tls {}; From ac353e603f5d666e6a47fae543e24deb280a9dd9 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Fri, 19 Sep 2025 09:49:20 -0500 Subject: [PATCH 13/13] Fix incorrect include directive --- src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp index 47cb5bbec5..984c8e1c18 100644 --- a/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp +++ b/src/mongocxx/lib/mongocxx/v1/rewrap_many_datakey_result.cpp @@ -12,4 +12,4 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include +#include