Package node_manager_fkie :: Module history' :: Class History
[frames] | no frames]

Class History

source code

PySide.QtCore.QObject --+
                        |
                       History

Instance Methods
 
__init__(self) source code
 
storeAll(self) source code
 
cachedParamValues(self, key) source code
 
addParamCache(self, key, value) source code
 
removeParamCache(self, key, value) source code
dict(str(name):[str(value), ...], ...)
loadCache(self, file)
Loads the content of the given file and return it as cache.
source code
 
storeCache(self, file, cache, history_len)
Stores the cache to a file.
source code
Class Variables
  HISTORY_LENGTH = 12
  PARAM_CACHE = dict()
the cache is used to store and recover the value for last entered parameter in parameter dialog.
  PARAM_HISTORY_FILE = 'param.history'
Method Details

loadCache(self, file)

source code 

Loads the content of the given file and return it as cache.

Parameters:
  • file (str) - the name of the history file
Returns: dict(str(name):[str(value), ...], ...)
the dictionary with arguments

storeCache(self, file, cache, history_len)

source code 

Stores the cache to a file.

Parameters:
  • file (str) - the name of the history file
  • cache (dict) - the dictionary with values
  • history_len (int) - the maximal count of value for a key