File tree Expand file tree Collapse file tree 7 files changed +135
-0
lines changed Expand file tree Collapse file tree 7 files changed +135
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ firebase_ios_glob(
218218 src/objc/*.h
219219 src/remote/*.cc
220220 src/remote/*.h
221+ src/called_by_swift/include /*.h
222+ src/called_by_swift/*.cc
221223 EXCLUDE ${nanopb_sources}
222224)
223225
Original file line number Diff line number Diff line change 1+ //
2+ // Created by Cheryl Lin on 2024-11-13.
3+ //
4+
5+ #ifndef FIREBASE_PIPELINE_H
6+ #define FIREBASE_PIPELINE_H
7+
8+ #include < vector>
9+ #include " Firestore/core/src/called_by_swift/include/pipeline_result.h"
10+
11+ namespace firebase {
12+ namespace firestore {
13+ namespace core {
14+ class Pipeline {
15+ public:
16+ Pipeline ();
17+
18+ std::vector<PipelineResult> execute ();
19+ };
20+ } // namespace core
21+ } // namespace firestore
22+ } // namespace firebase
23+
24+ #endif // FIREBASE_PIPELINE_H
Original file line number Diff line number Diff line change 1+
2+
3+ #include < string>
4+ #include < unordered_map>
5+ #include < vector>
6+ #include " Firestore/core/include/firebase/firestore/timestamp.h"
7+ #include " Firestore/core/src/api/api_fwd.h"
8+
9+ namespace firebase {
10+ namespace firestore {
11+
12+ namespace model {
13+ class FieldPath ;
14+ class FieldValue ;
15+ } // namespace model
16+
17+ namespace core {
18+
19+ class PipelineResult {
20+ public:
21+ PipelineResult ();
22+
23+ Timestamp getCreateTime () const ;
24+
25+ std::unordered_map<std::string, model::FieldValue> getData () const ;
26+
27+ api::DocumentReference getReference () const ;
28+ };
29+ } // namespace core
30+
31+ } // namespace firestore
32+ } // namespace firebase
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2024 LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ #include < string>
18+ #include < vector>
19+
20+ #include " Firestore/core/src/api/api_fwd.h"
21+ #include " Firestore/core/src/called_by_swift/include/pipeline.h"
22+
23+ namespace firebase {
24+ namespace firestore {
25+ namespace core {
26+ class PipelineSource {
27+ public:
28+ explicit PipelineSource ();
29+
30+ // Creates a new Pipeline that operates on the specified Firestore collection.
31+ Pipeline GetCollection (const std::string collection_path);
32+
33+ // Creates a new Pipeline that operates on a specific set of Firestore
34+ // documents.
35+ Pipeline GetDocuments (const std::vector<api::DocumentReference> docs);
36+ };
37+ } // namespace core
38+ } // namespace firestore
39+ } // namespace firebase
Original file line number Diff line number Diff line change 1+
2+ #include " Firestore/core/src/called_by_swift/include/pipeline.h"
3+ namespace firebase {
4+ namespace firestore {
5+ namespace core {
6+ Pipeline::Pipeline () {
7+ }
8+
9+ } // namespace core
10+ } // namespace firestore
11+ } // namespace firebase
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2024 LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ #include " Firestore/core/src/called_by_swift/include/pipeline_source.h"
18+
19+ PipelineSource::PipelineSource () {
20+ }
21+
22+ Pipeline PipelineSource::GetCollection (const std::string collection_path) {
23+ }
24+
25+ Pipeline PipelineSource::GetDocuments (
26+ const std::vector<DocumentReference> docs) {
27+ }
You can’t perform that action at this time.
0 commit comments