Class to load from json string
Definition at line 75 of file TriggerConfigAccessBase.py.
◆ __init__()
def python.TriggerConfigAccessBase.ConfigDirectLoader.__init__ |
( |
|
self, |
|
|
|
configType, |
|
|
|
jsonString |
|
) |
| |
◆ confirmConfigType()
def python.TriggerConfigAccessBase.ConfigLoader.confirmConfigType |
( |
|
self, |
|
|
|
config |
|
) |
| |
|
inherited |
checks that the in-file specification of the configuration type matches the expected type
Definition at line 51 of file TriggerConfigAccessBase.py.
51 def confirmConfigType(self,config):
53 checks that the in-file specification of the configuration type matches the expected type
55 if config[
'filetype'] != self.configType:
56 raise RuntimeError(
"Can not load file with filetype '%s' when expecting '%s'" % (config[
'filetype'], self.configType.filetype))
◆ getWriteFilename()
def python.TriggerConfigAccessBase.ConfigDirectLoader.getWriteFilename |
( |
|
self | ) |
|
◆ load()
def python.TriggerConfigAccessBase.ConfigDirectLoader.load |
( |
|
self | ) |
|
Definition at line 80 of file TriggerConfigAccessBase.py.
81 config = json.loads(self.jsonString, object_pairs_hook = odict)
82 self.confirmConfigType(config)
◆ setQuery()
def python.TriggerConfigAccessBase.ConfigDirectLoader.setQuery |
( |
|
self, |
|
|
|
query |
|
) |
| |
◆ configType
python.TriggerConfigAccessBase.ConfigLoader.configType |
|
inherited |
◆ jsonString
python.TriggerConfigAccessBase.ConfigDirectLoader.jsonString |
The documentation for this class was generated from the following file: