Skip to content

Commit

Permalink
fix some syntaxs
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Jan 9, 2025
1 parent dbf10d8 commit 0e652a7
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Firestore/core/interfaceForSwift/api/FirebaseFirestoreCpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

#ifndef FIREBASE_FIREBASEFIRESTORECPP_H
#define FIREBASE_FIREBASEFIRESTORECPP_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_

#import "collection_stage.h"
#import "firestore_pipeline.h"
Expand All @@ -24,4 +24,4 @@
#import "pipeline_source.h"
#import "stage.h"

#endif // FIREBASE_FIREBASEFIRESTORECPP_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIREBASEFIRESTORECPP_H_
4 changes: 2 additions & 2 deletions Firestore/core/interfaceForSwift/api/collection_stage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ namespace api {
Collection::Collection(std::string collection_path)
: collection_path_(collection_path) {
std::cout << "Calling Pipeline Collection ctor" << std::endl;
};
}

} // namespace api

} // namespace firestore
} // namespace firebase
} // namespace firebase
8 changes: 4 additions & 4 deletions Firestore/core/interfaceForSwift/api/collection_stage.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_COLLECTION_GROUP_STAGE_H
#define FIREBASE_COLLECTION_GROUP_STAGE_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_

#include <string>
#include "stage.h"
Expand All @@ -25,7 +25,7 @@ namespace api {

class Collection : public Stage {
public:
Collection(std::string collection_path);
explicit Collection(std::string collection_path);

private:
std::string collection_path_;
Expand All @@ -36,4 +36,4 @@ class Collection : public Stage {
} // namespace firestore
} // namespace firebase

#endif // FIREBASE_COLLECTION_GROUP_STAGE_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_COLLECTION_STAGE_H_
3 changes: 3 additions & 0 deletions Firestore/core/interfaceForSwift/api/firestore_pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// limitations under the License.

#include "Firestore/core/interfaceForSwift/api/firestore_pipeline.h"

#include <memory>

#include "Firestore/core/src/api/firestore.h"

namespace firebase {
Expand Down
8 changes: 5 additions & 3 deletions Firestore/core/interfaceForSwift/api/firestore_pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_FIRESTORE_PIPELINE_H
#define FIREBASE_FIRESTORE_PIPELINE_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_

#include <memory>

#include "pipeline_source.h"

Expand All @@ -32,4 +34,4 @@ class FirestorePipeline {
} // namespace firestore
} // namespace firebase

#endif // FIREBASE_FIRESTORE_PIPELINE_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_FIRESTORE_PIPELINE_H_
6 changes: 3 additions & 3 deletions Firestore/core/interfaceForSwift/api/pipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_PIPELINE_H
#define FIREBASE_PIPELINE_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_

#include <functional>
#include <memory>
Expand Down Expand Up @@ -57,4 +57,4 @@ class Pipeline {
} // namespace firestore
} // namespace firebase

#endif // FIREBASE_PIPELINE_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_H_
6 changes: 3 additions & 3 deletions Firestore/core/interfaceForSwift/api/pipeline_result.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_PIPELINE_RESULT_H
#define FIREBASE_PIPELINE_RESULT_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_

#include <memory>

Expand Down Expand Up @@ -48,4 +48,4 @@ class PipelineResult {

} // namespace firestore
} // namespace firebase
#endif // FIREBASE_PIPELINE_RESULT_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_RESULT_H_
3 changes: 3 additions & 0 deletions Firestore/core/interfaceForSwift/api/pipeline_source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// limitations under the License.

#include "Firestore/core/interfaceForSwift/api/pipeline_source.h"

#include <string>

#include "Firestore/core/interfaceForSwift/api/collection_stage.h"
#include "Firestore/core/src/api/document_reference.h"
#include "Firestore/core/src/api/firestore.h"
Expand Down
10 changes: 6 additions & 4 deletions Firestore/core/interfaceForSwift/api/pipeline_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_PIPELINE_SOURCE_H
#define FIREBASE_PIPELINE_SOURCE_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_

#include <memory>
#include <string>
#include <vector>

#include "pipeline.h"

namespace firebase {
Expand All @@ -29,7 +31,7 @@ class DocumentReference;

class PipelineSource {
public:
PipelineSource(std::shared_ptr<Firestore> firestore);
explicit PipelineSource(std::shared_ptr<Firestore> firestore);

Pipeline GetCollection(std::string collection_path) const;

Expand All @@ -42,4 +44,4 @@ class PipelineSource {
} // namespace firestore
} // namespace firebase

#endif // FIREBASE_PIPELINE_SOURCE_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_PIPELINE_SOURCE_H_
6 changes: 3 additions & 3 deletions Firestore/core/interfaceForSwift/api/stage.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef FIREBASE_STAGE_H
#define FIREBASE_STAGE_H
#ifndef FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_
#define FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_

namespace firebase {
namespace firestore {
Expand All @@ -30,4 +30,4 @@ class Stage {
} // namespace firestore
} // namespace firebase

#endif // FIREBASE_STAGE_H
#endif // FIRESTORE_CORE_INTERFACEFORSWIFT_API_STAGE_H_

0 comments on commit 0e652a7

Please sign in to comment.