Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdba2fee

Browse files
committed
Added comments to FirebaseObject
1 parenta1f64fa commitdba2fee

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

‎src/FirebaseObject.h‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,49 @@
2121

2222
#defineFIREBASE_JSONBUFFER_SIZE200
2323

24+
/**
25+
* Represents value stored in firebase, may be a singular value (leaf node) or
26+
* a tree structure.
27+
*/
2428
classFirebaseObject {
2529
public:
30+
/**
31+
* Construct from json.
32+
* \param data Json formatted string.
33+
*/
2634
FirebaseObject(const String& data);
35+
36+
/**
37+
* Interpret result as a bool, only applicable if result is a single element
38+
* and not a tree.
39+
*/
2740
operatorbool();
41+
42+
/**
43+
* Interpret result as a int, only applicable if result is a single element
44+
* and not a tree.
45+
*/
2846
operatorint();
47+
48+
/**
49+
* Interpret result as a float, only applicable if result is a single element
50+
* and not a tree.
51+
*/
2952
operatorfloat();
53+
54+
/**
55+
* Interpret result as a String, only applicable if result is a single element
56+
* and not a tree.
57+
*/
3058
operatorconst String&();
59+
60+
/**
61+
* Interpret result as a JsonObject, if the result is a tree use this or the
62+
* operator[] methods below.
63+
*/
3164
operatorconst JsonObject&();
65+
66+
//TODO(proppy): Add comments to these.
3267
JsonObjectSubscript<constchar*>operator[](constchar* key);
3368
JsonObjectSubscript<const String&>operator[](const String& key);
3469
JsonVariantoperator[](JsonObjectKey key)const;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp