Appwrite C++ SDK
Auto-generated API documentation for the Appwrite C++ SDK
Loading...
Searching...
No Matches
Appwrite.hpp
Go to the documentation of this file.
1/// @file Appwrite.hpp
2/// @brief Root header to import all core Appwrite SDK modules for easy access.
3
4#ifndef APPWRITE_HPP
5#define APPWRITE_HPP
6
7#include "classes/Account.hpp"
9#include "classes/Health.hpp"
10#include "classes/Messaging.hpp"
11#include "classes/Query.hpp"
12#include "classes/Storage.hpp"
13
14/**
15 * @class Appwrite
16 * @brief Main entry point for accessing Appwrite services via the C++ SDK.
17 */
18class Appwrite {
19 public:
20 /**
21 * @brief Construct a new Appwrite instance.
22 *
23 * @param projectId The Appwrite project ID.
24 * @param apiKey Optional API key for authenticated requests.
25 */
26 Appwrite(const std::string &projectId, const std::string &apiKey = "");
27
28 /**
29 * @brief Get the Account module to manage user accounts.
30 *
31 * @return Account& Reference to Account object.
32 */
34
35 /**
36 * @brief Get the Databases module to perform database operations.
37 *
38 * @return Databases& Reference to Databases object.
39 */
41
42 /**
43 * @brief Get the Storage module for file and bucket operations.
44 *
45 * @return Storage& Reference to Storage object.
46 */
48
49 /**
50 * @brief Get the Health module to check Appwrite server status.
51 *
52 * @return Health& Reference to Health object.
53 */
55
56 /**
57 * @brief Get the Messaging module for managing topics, subscribers, and
58 * emails.
59 *
60 * @return Messaging& Reference to Messaging object.
61 */
63
64 private:
65 std::string projectId;
66 std::string apiKey;
67 Account account;
68 Databases databases;
69 Storage storage;
70 Health health;
71 Messaging messaging;
72};
73
74#endif
Handles user account-related operations like creation and session management.
Provides database management APIs: databases, collections, attributes, documents, and indexes.
Exposes health check APIs to verify Appwrite server status and service uptime.
Provides messaging-related operations (messages, topics, subscribers)
Offers helper methods to construct query parameters for filtering and sorting API responses.
Manages file storage operations like upload, download, delete, and preview.
Handles user account-related operations like creation and session management.
Definition Account.hpp:18
Main entry point for accessing Appwrite services via the C++ SDK.
Definition Appwrite.hpp:18
Databases & getDatabases()
Get the Databases module to perform database operations.
Account & getAccount()
Get the Account module to manage user accounts.
Messaging & getMessaging()
Get the Messaging module for managing topics, subscribers, and emails.
Appwrite(const std::string &projectId, const std::string &apiKey="")
Construct a new Appwrite instance.
Storage & getStorage()
Get the Storage module for file and bucket operations.
Health & getHealth()
Get the Health module to check Appwrite server status.
Provides CRUD operations for databases, collections, documents, attributes, and indexes.
Definition Databases.hpp:19
Monitors the status of Appwrite's internal services.
Definition Health.hpp:16
Provides APIs to manage messaging: messages, topics, subscribers.
Definition Messaging.hpp:17
Provides methods to interact with Appwrite's Storage service.
Definition Storage.hpp:19