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

Commitfb70673

Browse files
committed
Add Statable.cpp
1 parent5717c2d commitfb70673

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

‎Jamfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ local sourceFiles =
180180
Directory.cpp
181181
File.cpp
182182
Path.cpp
183+
Statable.cpp
184+
#FilePanel.cpp
183185
;
184186

185187
# The shared library Be.so can be built from the sourceFiles

‎bindings/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
from .Directoryimport*
8484
from .Fileimport*
8585
from .Pathimport*
86+
from .Statableimport*
87+
#from .FilePanel import *
8688

8789
_BWindow=BWindow
8890
_BApplication=BApplication

‎bindings/storage/Statable.cpp‎

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

66
#include<Statable.h>
7+
#include<Node.h>
8+
#include<Volume.h>
79

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

14-
voiddefine_Statable(py::module_& m)
16+
PYBIND11_MODULE(Statable, m)
1517
{
1618
py::class_<BStatable>(m,"BStatable")
1719
.def("GetStat", &BStatable::GetStat,"",py::arg("stat"))
@@ -33,7 +35,7 @@ py::class_<BStatable>(m, "BStatable")
3335
.def("GetAccessTime", &BStatable::GetAccessTime,"",py::arg("atime"))
3436
.def("SetAccessTime", &BStatable::SetAccessTime,"",py::arg("atime"))
3537
.def("GetVolume", &BStatable::GetVolume,"",py::arg("volume"))
36-
.def_readwrite("Private", &BStatable::Private,"")
38+
//.def_readwrite("Private", &BStatable::Private, "")
3739
;
3840

3941

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp