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

Commit3523aae

Browse files
committed
Add Query.cpp attempt-Fix PathFinder.cpp
1 parent0cc4976 commit3523aae

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

‎Jamfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ local sourceFiles =
188188
Statable.cpp
189189
Resources.cpp
190190
ResourceStrings.cpp
191+
Query.cpp
191192
#FilePanel.cpp
192193
;
193194

‎bindings/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
from .Statableimport*
9090
from .Resourcesimport*
9191
from .ResourceStringsimport*
92+
from .Queryimport*
9293
#from .FilePanel import *
9394

9495
_BWindow=BWindow

‎bindings/storage/PathFinder.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include<pybind11/operators.h>
55

66
#include<PathFinder.h>
7+
#include<FindDirectory.h>
8+
#include<package/PackageResolvableExpression.h>
79
#include<Path.h>
810

911
namespacepy= pybind11;
@@ -20,11 +22,11 @@ py::class_<BPathFinder>(m, "BPathFinder")
2022
.def(py::init<constvoid *,constchar *>(),"",py::arg("codePointer")=NULL,py::arg("dependency")=NULL)
2123
.def(py::init<constchar *,constchar *>(),"",py::arg("path"),py::arg("dependency")=NULL)
2224
.def(py::init<const entry_ref &,constchar *>(),"",py::arg("ref"),py::arg("dependency")=NULL)
23-
//.def(py::init<constBResolvableExpression &, const char *>(), "", py::arg("expression"), py::arg("dependency")=NULL)
25+
//.def(py::init<constBPackageKit::BPackageResolvableExpression &, const char *>(), "", py::arg("expression"), py::arg("dependency")=NULL) //BResolvableExpression
2426
.def("SetTo", py::overload_cast<constvoid *,constchar *>(&BPathFinder::SetTo),"",py::arg("codePointer")=NULL,py::arg("dependency")=NULL)
2527
.def("SetTo", py::overload_cast<constchar *,constchar *>(&BPathFinder::SetTo),"",py::arg("path"),py::arg("dependency")=NULL)
2628
.def("SetTo", py::overload_cast<const entry_ref &,constchar *>(&BPathFinder::SetTo),"",py::arg("ref"),py::arg("dependency")=NULL)
27-
//.def("SetTo", py::overload_cast<constBResolvableExpression &, const char *>(&BPathFinder::SetTo), "", py::arg("expression"), py::arg("dependency")=NULL)
29+
//.def("SetTo", py::overload_cast<constBPackageKit::BPackageResolvableExpression &, const char *>(&BPathFinder::SetTo), "", py::arg("expression"), py::arg("dependency")=NULL) //BResolvableExpression
2830
.def("FindPath", [](BPathFinder& self,constchar * architecture,path_base_directory baseDirectory,constchar * subPath,unsignedint flags) {
2931
BPath _path;
3032
status_t r = self.FindPath(architecture, baseDirectory, subPath, flags, _path);

‎bindings/storage/Query.cpp‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
#include<pybind11/operators.h>
55

66
#include<Query.h>
7+
#include<Volume.h>
8+
#include<String.h>
79

810
namespacepy= pybind11;
911
usingnamespaceBPrivate;
1012
usingnamespaceBPrivate::Storage;
11-
usingnamespaceBPrivate::Storage::Mime;
12-
usingnamespaceBPackageKit;
13+
//using namespace BPrivate::Storage::Mime;
14+
//using namespace BPackageKit;
1315

14-
voiddefine_Query(py::module_& m)
16+
PYBIND11_MODULE(Query, m)
1517
{
1618
py::enum_<query_op>(m,"query_op","")
1719
.value("B_INVALID_OP", query_op::B_INVALID_OP,"")
@@ -30,11 +32,11 @@ py::enum_<query_op>(m, "query_op", "")
3032
.value("_B_RESERVED_OP_", query_op::_B_RESERVED_OP_,"")
3133
.export_values();
3234

33-
m.attr("QueryNode") =py::cast(QueryNode);
35+
//m.attr("QueryNode") = py::cast(QueryNode);
3436

35-
m.attr("QueryStack") =py::cast(QueryStack);
37+
//m.attr("QueryStack") = py::cast(QueryStack);
3638

37-
m.attr("QueryTree") =py::cast(QueryTree);
39+
//m.attr("QueryTree") = py::cast(QueryTree);
3840

3941
py::class_<BQuery, BEntryList>(m,"BQuery")
4042
.def(py::init(),"")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp