aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/model/field_path.h
diff options
context:
space:
mode:
authorGravatar Konstantin Varlamov <var-const@users.noreply.github.com>2018-02-09 19:42:28 -0500
committerGravatar GitHub <noreply@github.com>2018-02-09 19:42:28 -0500
commit80033485be537acaf29924f6b717c777b550a418 (patch)
tree25c3cd3cf2d53e98767aa6ea3ae51384327e5245 /Firestore/core/src/firebase/firestore/model/field_path.h
parent612d99c759741bd6384102f586aed1b3874cf95b (diff)
C++ port: add C++ equivalent of FSTDocumentKey. (#762)
Also move kDocumentKeyPath to the only point of usage - make it a static member variable of FieldPath.
Diffstat (limited to 'Firestore/core/src/firebase/firestore/model/field_path.h')
-rw-r--r--Firestore/core/src/firebase/firestore/model/field_path.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/model/field_path.h b/Firestore/core/src/firebase/firestore/model/field_path.h
index ba6e2bd..fdf4918 100644
--- a/Firestore/core/src/firebase/firestore/model/field_path.h
+++ b/Firestore/core/src/firebase/firestore/model/field_path.h
@@ -35,6 +35,9 @@ namespace model {
*/
class FieldPath : public impl::BasePath<FieldPath> {
public:
+ /** The field path string that represents the document's key. */
+ static constexpr const char* kDocumentKeyPath = "__name__";
+
// Note: Xcode 8.2 requires explicit specification of the constructor.
FieldPath() : impl::BasePath<FieldPath>() {
}