File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
database/src/include/firebase/database Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 16
16
#define FIREBASE_DATABASE_CLIENT_CPP_SRC_INCLUDE_FIREBASE_DATABASE_DATA_SNAPSHOT_H_
17
17
18
18
#include < stddef.h>
19
+
19
20
#include < string>
21
+
20
22
#include " firebase/internal/common.h"
21
23
#include " firebase/variant.h"
22
24
@@ -45,6 +47,13 @@ class DatabaseReference;
45
47
#endif // SWIG
46
48
class DataSnapshot {
47
49
public:
50
+ // / @brief Default constructor.
51
+ // /
52
+ // / This DataSnapshot contains nothing and is considered invalid (i.e.
53
+ // / is_valid() == false). Use this to construct an empty DataSnapshot that you
54
+ // / will later populate with data from a database callback.
55
+ DataSnapshot () : internal_(nullptr ) {}
56
+
48
57
#ifdef INTERNAL_EXPERIMENTAL
49
58
explicit DataSnapshot (internal::DataSnapshotInternal* internal);
50
59
#endif
You can’t perform that action at this time.
0 commit comments