Skip to content

Commit

Permalink
generate stubs [#90]
Browse files Browse the repository at this point in the history
  • Loading branch information
CEXT-Dan committed Nov 27, 2024
1 parent 7e362d4 commit 48f3f4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PyRxCore/PyBrxBimObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void makeBrxBimBuildingWrapper()
.def("getBuilding", &PyBrxBimBuilding::getBuilding, DS.SARGS({ "db: PyDb.Database", "name: str" })).staticmethod("getBuilding")
.def("allObjectBuildings", &PyBrxBimBuilding::allObjectBuildings, DS.SARGS({ "db: PyDb.Database" })).staticmethod("allObjectBuildings")
.def("allStringBuildings", &PyBrxBimBuilding::allStringBuildings, DS.SARGS({ "db: PyDb.Database" })).staticmethod("allStringBuildings")
.def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" })
.def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" }))
//TODO alter argument type
.def("allObjectStoriesFromDb", &PyBrxBimBuilding::allObjectStoriesFromDb2, DS.SARGS({ "db: PyDb.Database","building: str = None" })).staticmethod("allObjectStoriesFromDb")
.def("allStringStoriesFromDb", &PyBrxBimBuilding::allStringStoriesFromDb1, DS.ARGS({ "db: PyDb.Database" }))
Expand Down
16 changes: 9 additions & 7 deletions PyRxStubs/PyBrxBim.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ class BimBuilding(BimSpatialLocation):
def allObjectStories (self)-> list :
''' '''
...

@staticmethod
def allObjectStoriesFromDb (db: PyDb.Database,building: str = None)-> list :
def allObjectStoriesFromDb (self, db: PyDb.Database)-> list :
''' '''
...

Expand All @@ -50,9 +48,7 @@ class BimBuilding(BimSpatialLocation):
def allStringStories (self)-> list :
''' '''
...

@staticmethod
def allStringStoriesFromDb (db: PyDb.Database,building: str = None)-> list :
def allStringStoriesFromDb (self, db: PyDb.Database)-> list :
''' '''
...
def assignToEntity (self, id: PyDb.ObjectId)-> None :
Expand Down Expand Up @@ -92,7 +88,10 @@ class BimBuilding(BimSpatialLocation):
def deleteBuildingFromDb (db: PyDb.Database,name: str)-> None :
''' '''
...
def deleteStory (self)-> PyBrxBim.BimObjectType :
def deleteStoryObject (self, story: PyBrxBim.BimStory)-> None :
''' '''
...
def deleteStoryString (self, story: str)-> None :
''' '''
...
def description (self)-> str :
Expand Down Expand Up @@ -127,6 +126,9 @@ class BimBuilding(BimSpatialLocation):
def setNull (self)-> None :
''' '''
...
def typeDesc (self)-> PyBrxBim.BimObjectType :
''' '''
...
def typeName (self)-> str :
''' '''
...
Expand Down

0 comments on commit 48f3f4a

Please sign in to comment.