powc.persist module#

永続化機能。IPersist、IPersistFile、IPersistStreamのラッパーです。

class powc.persist.IPersist#

ベースクラス: IUnknown

GetClassID = <COM method offset 3: WinFunctionType>#
class powc.persist.IPersistFile#

ベースクラス: IPersist

GetCurFile = <COM method offset 8: WinFunctionType>#
IsDirty = <COM method offset 4: WinFunctionType>#
Load = <COM method offset 5: WinFunctionType>#
Save = <COM method offset 6: WinFunctionType>#
SaveCompleted = <COM method offset 7: WinFunctionType>#
class powc.persist.IPersistStream#

ベースクラス: IPersist

GetSizeMax = <COM method offset 7: WinFunctionType>#
IsDirty = <COM method offset 4: WinFunctionType>#
Load = <COM method offset 5: WinFunctionType>#
Save = <COM method offset 6: WinFunctionType>#
class powc.persist.Persist(o: Any)#

ベースクラス: object

IPersistインターフェイスのラッパーです。

property get_clsid: GUID#
property get_clsid_nothrow: ComResult[GUID]#
property wrapped_obj: c_void_p#
class powc.persist.PersistFile(o: Any)#

ベースクラス: Persist

ファイルによる永続化管理。IPersistFileインターフェイスのラッパーです。

property curfile: str#
property curfile_nothrow: ComResult[str]#
property isdirty: bool#
property isdirty_nothrow: ComResult[bool]#
load(path: str | PathLike, mode: StorageMode) bool#
load_nothrow(path: str | PathLike, mode: StorageMode) ComResult[bool]#
save(path: str | PathLike, remembers: bool) bool#
save_completed_nothrow(path: str | PathLike) ComResult[bool]#
save_nothrow(path: str | PathLike, remembers: bool) ComResult[bool]#
savecompleted(path: str | PathLike) bool#
property wrapped_obj: c_void_p#
class powc.persist.PersistStream(o: Any)#

ベースクラス: Persist

ストリームによる永続化管理。IPersistStreamインターフェイスのラッパーです。

property is_dirty: bool#
property is_dirty_nothrow: ComResult[bool]#
load(stream: ComStream) None#
load_nothrow(stream: ComStream) ComResult[None]#
save(stream: ComStream, clears_dirty: bool) None#
save_nothrow(stream: ComStream, clears_dirty: bool) ComResult[None]#
property sizemax: int#
property sizemax_nothrow: ComResult[int]#
property wrapped_obj: c_void_p#