|
Drag[en]gine Script Module DragonScript 1.35
|
Persistency support for complex objects. More...
Public Member Functions | |
| void | addFactory (String name, PersistencyFactory factory) |
| Add persistency factory. | |
| Console | getConsole () |
| Console for logging puspose. | |
| bool | getDebugEnableCanaryValue () |
| Enable file consistency debuging. | |
| PersistencyFactory | getFactoryNamed (String name) |
| Named factory or null if absent. | |
| Persistency | new (Console console) |
| Create persistency. | |
| void | removeAllFactories () |
| Remove all factories. | |
| void | removeFactory (String name) |
| Remove factory. | |
| void | setDebugEnableCanaryValue (bool enable) |
| Set if file consistency debugingis enabled. | |
Static Public Attributes | |
| static final String | debugCanaryValue = "|=> Canary Value <=|" |
| Canary value if debugging is enabled. | |
| static final String | debugCanaryValue_BEGIN = "|=> Begin Canary Value <=|" |
| Begin canary value if debugging is enabled. | |
| static final String | debugCanaryValue_END = "|=> End Canary Value <=|" |
| End canary value if debugging is enabled. | |
Persistency support for complex objects.
Provides support for writing and reading complex objects using file readers and writers. Stores a list of PersistencyFactory implementors providing support to read an object type from file. Classes implementing Persistable can be read and written using this persistency environment. Use PersistencyEnvironment to carry useful information required to properly restore complex objects.
| void Dragengine.LoadSave.Persistency.addFactory | ( | String | name, |
| PersistencyFactory | factory ) |
Add persistency factory.
| EInvalidParam | factory is null. |
| EInvalidParam | factory with name is present. |
Referenced by removeFactory().
| Console Dragengine.LoadSave.Persistency.getConsole | ( | ) |
| bool Dragengine.LoadSave.Persistency.getDebugEnableCanaryValue | ( | ) |
Enable file consistency debuging.
Elements and stubs write to file writes a canary value before and after written data verifying the integrity during reading. Intended for debug use only.
References removeFactory().
Referenced by setDebugEnableCanaryValue().
| PersistencyFactory Dragengine.LoadSave.Persistency.getFactoryNamed | ( | String | name | ) |
Named factory or null if absent.
Referenced by removeAllFactories().
| Persistency Dragengine.LoadSave.Persistency.new | ( | Console | console | ) |
Create persistency.
Referenced by removeAllFactories().
| void Dragengine.LoadSave.Persistency.removeAllFactories | ( | ) |
Remove all factories.
References getFactoryNamed(), and new().
Referenced by setDebugEnableCanaryValue().
| void Dragengine.LoadSave.Persistency.removeFactory | ( | String | name | ) |
Remove factory.
| EInvalidParam | factory with name is absent. |
References addFactory().
Referenced by getDebugEnableCanaryValue().
| void Dragengine.LoadSave.Persistency.setDebugEnableCanaryValue | ( | bool | enable | ) |
Set if file consistency debugingis enabled.
Elements and stubs write to file writes a canary value before and after written data verifying the integrity during reading. Intended for debug use only.
References getDebugEnableCanaryValue(), removeAllFactories(), and setDebugEnableCanaryValue().
Referenced by setDebugEnableCanaryValue().
|
static |
Canary value if debugging is enabled.
python: ''.join([chr(32+int(random.random()*(126-32))) for x in range(16)]).
|
static |
Begin canary value if debugging is enabled.
|
static |
End canary value if debugging is enabled.