|
def | __init__ (self, cpp_type, valueSem=None) |
|
def | name (self) |
|
def | name (self, value) |
|
def | store (self, value) |
|
def | default (self, value) |
|
def | opt_value (self, value) |
|
def | __init__ (self, cpp_type) |
|
def | cpp_type (self) |
|
def | cpp_type (self, value) |
|
def | load (self, value) |
|
def | is_set (self, value) |
|
def | merge (self, a, b) |
|
Definition at line 427 of file semantics.py.
◆ __init__()
def GaudiConfig2.semantics.SequenceSemantics.__init__ |
( |
|
self, |
|
|
|
cpp_type, |
|
|
|
valueSem = None |
|
) |
| |
Definition at line 430 of file semantics.py.
430 def __init__(self, cpp_type, valueSem=None):
431 super(SequenceSemantics, self).__init__(cpp_type)
◆ default()
def GaudiConfig2.semantics.SequenceSemantics.default |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 456 of file semantics.py.
457 new_value = _ListHelper(self.value_semantics)
458 new_value.default = value
◆ name() [1/2]
def GaudiConfig2.semantics.SequenceSemantics.name |
( |
|
self | ) |
|
◆ name() [2/2]
def GaudiConfig2.semantics.SequenceSemantics.name |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ opt_value()
def GaudiConfig2.semantics.SequenceSemantics.opt_value |
( |
|
self, |
|
|
|
value |
|
) |
| |
Option string version of value.
Reimplemented from GaudiConfig2.semantics.PropertySemantics.
Definition at line 461 of file semantics.py.
461 def opt_value(self, value):
463 Option string version of value.
465 if not isinstance(value, _ListHelper):
466 value = self.default(value)
467 return value.opt_value()
◆ store()
def GaudiConfig2.semantics.SequenceSemantics.store |
( |
|
self, |
|
|
|
value |
|
) |
| |
Validation/transformation of the data to be stored.
Reimplemented from GaudiConfig2.semantics.PropertySemantics.
Definition at line 445 of file semantics.py.
445 def store(self, value):
446 if not isinstance(value, (list, _ListHelper, tuple)):
448 "list or tuple expected, got {!r} in assignment to {}".
format(
452 new_value = _ListHelper(self.value_semantics)
453 new_value.extend(value)
◆ __handled_types__
GaudiConfig2.semantics.SequenceSemantics.__handled_types__ |
|
staticprivate |
◆ _name
GaudiConfig2.semantics.SequenceSemantics._name |
|
private |
◆ value_semantics
GaudiConfig2.semantics.SequenceSemantics.value_semantics |
The documentation for this class was generated from the following file: