PyANGKernel.GKRealDataSetRestorer

class GKRealDataSetRestorer

Inherited by: GKRealDataSetRestorerSimple, GKRealDataSetRestorerOnline

Synopsis

Methods

Virtual methods

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:

restorerGKRealDataSetRestorer

abstractmethod getDescription()
Return type:

str

Returns a description of what data can be restored (the file name, the database name…)

abstractmethod getExternalName()
Return type:

str

Returns a name for this restorer type to be presented to the user. It can be localized.

getForcedInterval()
Return type:

GKTimeDuration

Force an aggregation interval for the data. Set 00:00:00 to turn it off

abstractmethod getName()
Return type:

str

Returns a unique name for this restorer type. Usually it will be the class name.

getObjectType()
Return type:

GKType

Returns the type of the objects that will be modified by this restorer. Can be NULL (meaning any type).

abstractmethod getOriginatorName()
Return type:

str

order()
Return type:

int

When a GKRealDataSet contains more than one GKRealDataSetRestorer , this method is used to sort the GKRealDataSetRestorer on it and do the restoration in order.

postRestore(aModel)
Parameters:

aModelGKModel

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:

Restores the object state from a XML string.

restoreData(arealDataSet, amodel)
Parameters:
Return type:

bool

Restores the data. Returns true if the data was restored, false otherwise.

secondaryOrder()
Return type:

str

When a GKRealDataSet contains more than one GKRealDataSetRestorer this method is used to sort the GKRealDataSetRestorer on it and do the restoration in order.

setDescription(arg__1)
Parameters:

arg__1 – str

Sets the name of the file that contains the data.

setModel(model)
Parameters:

modelGKModel

Sets the model.

setObjectType(type)
Parameters:

typeGKType

Sets the type of the objects that will be modified by this restorer. Can be NULL (meaning any type).

setRealDataSet(arealDataSet)
Parameters:

arealDataSetGKRealDataSet

The owner.