Camel.Object¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
File containing persistent property values |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Camel.Object(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_state_filename()¶
- Returns:
the name of the persistent property file
- Return type:
Returns the name of the file in which persistent property values for self are stored. The file is used by
Camel.Object.state_write
() andCamel.Object.state_read
() to save and restore object state.New in version 2.32.
- set_state_filename(state_filename)¶
- Parameters:
state_filename (
str
) – path to a local file
Sets the name of the file in which persistent property values for self are stored. The file is used by
Camel.Object.state_write
() andCamel.Object.state_read
() to save and restore object state.New in version 2.32.
- state_read()¶
- Returns:
-1 on error.
- Return type:
Read persistent object state from
Camel.Object
:state-filename
.
- state_write()¶
- Returns:
-1 on error.
- Return type:
Write persistent object state
Camel.Object
:state-filename
.