PyANGKernel.GKRealDataSetRestorer¶
- class GKRealDataSetRestorer¶
Inherited by:
GKRealDataSetRestorerSimple,GKRealDataSetRestorerOnlineSynopsis¶
Methods¶
def
__init__()def
getObjectType()def
setModel()def
setObjectType()def
setRealDataSet()
Virtual methods¶
def
copyData()def
getDescription()def
getName()def
order()def
postRestore()def
preStore()def
restore()def
restoreData()def
secondaryOrder()def
setDescription()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
UnknownCommand
GKRealDataSet- __init__()¶
- copyData(restorer)¶
- Parameters:
restorer –
GKRealDataSetRestorer
Returns a description of what data can be restored (the file name, the database name…)
Returns a name for this restorer type to be presented to the user. It can be localized.
- getForcedInterval()¶
- Return type:
Force an aggregation interval for the data. Set 00:00:00 to turn it off
Returns a unique name for this restorer type. Usually it will be the class name.
Returns the type of the objects that will be modified by this restorer. Can be NULL (meaning any type).
When a
GKRealDataSetcontains more than oneGKRealDataSetRestorer, this method is used to sort theGKRealDataSetRestoreron it and do the restoration in order.Only for GKRealdataSetRestorerSimple. Post-process to work with vehicles ids instead names.
- preStore()¶
Only for GKRealdataSetRestorerSimple. Pre-process to work with vehicles ids instead names.
- abstractmethod restore(arealDataSet, xmlData)¶
- Parameters:
arealDataSet –
GKRealDataSetxmlData – str
Restores the object state from a XML string.
- restoreData(arealDataSet, amodel)¶
- Parameters:
arealDataSet –
GKRealDataSetamodel –
GKModel
- Return type:
Restores the data. Returns true if the data was restored, false otherwise.
When a
GKRealDataSetcontains more than oneGKRealDataSetRestorerthis method is used to sort theGKRealDataSetRestoreron it and do the restoration in order.- setDescription(arg__1)¶
- Parameters:
arg__1 – str
Sets the name of the file that contains the data.
Sets the model.
Sets the type of the objects that will be modified by this restorer. Can be NULL (meaning any type).
- setRealDataSet(arealDataSet)¶
- Parameters:
arealDataSet –
GKRealDataSet
The owner.