Skip to content

Commit d7f3a25

Browse files
author
Ivan Dlugos
committed
C++ API - rename objectbox-cpp.h to objectbox.hpp
1 parent d48775d commit d7f3a25

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

internal/generator/c/templates/binding-hpp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var CppBindingTemplateHeader = template.Must(template.New("binding-hpp").Funcs(f
3333
#include <cstdint>
3434
3535
#include "flatbuffers/flatbuffers.h"
36-
#include "objectbox-cpp.h"
3736
#include "objectbox.h"
37+
#include "objectbox.hpp"
3838
{{range $entity := .Model.EntitiesWithMeta}}
3939
{{$entity.Meta.PreDeclareCppRelTargets -}}
4040
{{with $entity.Meta.CppNamespaceStart}}

test/build/c-compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func CanCompileObjectBoxCCpp(t *testing.T, repoRoot string, cpp, required bool)
3535

3636
// check objectbox lib
3737
if cpp {
38-
err = cmake.LibraryExists("objectbox", []string{"objectbox-cpp.h"}, includeDirs, libDirs)
38+
err = cmake.LibraryExists("objectbox", []string{"objectbox.hpp"}, includeDirs, libDirs)
3939
} else {
4040
err = cmake.LibraryExists("objectbox", []string{"objectbox.h"}, includeDirs, libDirs)
4141
}

test/comparison/c-helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (h cTestHelper) build(t *testing.T, conf testSpec, dir string, expectedErro
100100
{ // write main.c/cpp to the conf dir - a simple one, just include all sources
101101
var mainSrc = ""
102102
if cmak.IsCpp {
103-
mainSrc = mainSrc + "#include \"objectbox-cpp.h\"\n"
103+
mainSrc = mainSrc + "#include \"objectbox.hpp\"\n"
104104
} else {
105105
mainSrc = mainSrc + "#include \"objectbox.h\"\n"
106106
}

test/comparison/testdata/fbs/typeful/cpp/schema.obx.hpp.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include <cstdint>
77

88
#include "flatbuffers/flatbuffers.h"
9-
#include "objectbox-cpp.h"
109
#include "objectbox.h"
10+
#include "objectbox.hpp"
1111

1212
namespace ns { struct AnnotatedEntity; }
1313

test/integration/property-clear/cpp/step-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

33
#include "catch2/catch.hpp"
4-
#include "objectbox-cpp.h"
4+
#include "objectbox.hpp"
55
#include "schema.obx.hpp"
66
#include "shared/store-init.h"
77
using namespace obx;

test/integration/property-clear/cpp/step-2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

33
#include "catch2/catch.hpp"
4-
#include "objectbox-cpp.h"
4+
#include "objectbox.hpp"
55
#include "schema.obx.hpp"
66
#include "shared/store-init.h"
77
using namespace obx;

test/integration/renames/cpp/step-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

33
#include "catch2/catch.hpp"
4-
#include "objectbox-cpp.h"
4+
#include "objectbox.hpp"
55
#include "schema.obx.hpp"
66
#include "shared/store-init.h"
77
using namespace obx;

test/integration/renames/cpp/step-2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

33
#include "catch2/catch.hpp"
4-
#include "objectbox-cpp.h"
4+
#include "objectbox.hpp"
55
#include "schema.obx.hpp"
66
#include "shared/store-init.h"
77
using namespace obx;

test/integration/sync/cpp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

33
#include "catch2/catch.hpp"
4-
#include "objectbox-cpp.h"
4+
#include "objectbox.hpp"
55
#include "objectbox-model.h"
66
#include "synced.obx.hpp"
77
#include "shared/store-init.h"

test/integration/typeful/cpp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "annotated.obx.hpp"
44
#include "catch2/catch.hpp"
5-
#include "objectbox-cpp.h"
5+
#include "objectbox.hpp"
66
#include "objectbox-model.h"
77
#include "schema.obx.hpp"
88
#include "shared/store-init.h"

0 commit comments

Comments
 (0)