The Gaudi Framework  v36r9p1 (5c15b2bb)
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

tuple __handled_types__ = (re.compile(r"(std::)?(vector|list)<.*>$"),)
 

Detailed Description

Definition at line 349 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 352 of file semantics.py.

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

Member Function Documentation

◆ default()

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

Definition at line 363 of file semantics.py.

363  def default(self, value):
364  new_value = _ListHelper(self.value_semantics)
365  new_value.default = value
366  return new_value
367 

◆ opt_value()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 368 of file semantics.py.

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

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 358 of file semantics.py.

358  def store(self, value):
359  new_value = _ListHelper(self.value_semantics)
360  new_value.extend(value)
361  return new_value
362 

Member Data Documentation

◆ __handled_types__

tuple GaudiConfig2.semantics.SequenceSemantics.__handled_types__ = (re.compile(r"(std::)?(vector|list)<.*>$"),)
staticprivate

Definition at line 350 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 354 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:510
gaudirun.default
default
Definition: gaudirun.py:188