The Gaudi Framework  v36r16 (ea80daf8)
GaudiConfig2.semantics.SequenceSemantics Class Reference
Inheritance diagram for GaudiConfig2.semantics.SequenceSemantics:
Collaboration diagram for GaudiConfig2.semantics.SequenceSemantics:

Public Member Functions

def __init__ (self, cpp_type, name=None, valueSem=None)
 
def store (self, value)
 
def default (self, value)
 
def opt_value (self, value)
 
- Public Member Functions inherited from GaudiConfig2.semantics.PropertySemantics
def __init__ (self, cpp_type, name=None)
 
def cpp_type (self)
 
def cpp_type (self, value)
 
def load (self, value)
 
def is_set (self, value)
 
def merge (self, a, b)
 

Public Attributes

 value_semantics
 
- Public Attributes inherited from GaudiConfig2.semantics.PropertySemantics
 name
 
 cpp_type
 

Static Private Attributes

 __handled_types__
 

Detailed Description

Definition at line 346 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

def GaudiConfig2.semantics.SequenceSemantics.__init__ (   self,
  cpp_type,
  name = None,
  valueSem = None 
)

Definition at line 349 of file semantics.py.

349  def __init__(self, cpp_type, name=None, valueSem=None):
350  super(SequenceSemantics, self).__init__(cpp_type, name)
351  self.value_semantics = valueSem or getSemanticsFor(
352  list(extract_template_args(cpp_type))[0]
353  )
354 

Member Function Documentation

◆ default()

def GaudiConfig2.semantics.SequenceSemantics.default (   self,
  value 
)

Definition at line 360 of file semantics.py.

360  def default(self, value):
361  new_value = _ListHelper(self.value_semantics)
362  new_value.default = value
363  return new_value
364 

◆ opt_value()

def GaudiConfig2.semantics.SequenceSemantics.opt_value (   self,
  value 
)
Option string version of value.

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 365 of file semantics.py.

365  def opt_value(self, value):
366  """
367  Option string version of value.
368  """
369  if not isinstance(value, _ListHelper):
370  value = self.default(value)
371  return value.opt_value()
372 
373 

◆ store()

def GaudiConfig2.semantics.SequenceSemantics.store (   self,
  value 
)
Validation/transformation of the data to be stored.

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 355 of file semantics.py.

355  def store(self, value):
356  new_value = _ListHelper(self.value_semantics)
357  new_value.extend(value)
358  return new_value
359 

Member Data Documentation

◆ __handled_types__

GaudiConfig2.semantics.SequenceSemantics.__handled_types__
staticprivate

Definition at line 347 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 351 of file semantics.py.


The documentation for this class was generated from the following file:
GaudiConfig2.semantics.extract_template_args
def extract_template_args(cpp_type)
Definition: semantics.py:270
GaudiConfig2.semantics.getSemanticsFor
def getSemanticsFor(cpp_type, name=None)
Definition: semantics.py:507
gaudirun.default
default
Definition: gaudirun.py:190