The Gaudi Framework  v36r3 (83a1ddab)
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 316 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 319 of file semantics.py.

319  def __init__(self, cpp_type, name=None, valueSem=None):
320  super(SequenceSemantics, self).__init__(cpp_type, name)
321  self.value_semantics = valueSem or getSemanticsFor(
322  list(extract_template_args(cpp_type))[0]
323  )
324 

Member Function Documentation

◆ default()

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

Definition at line 330 of file semantics.py.

330  def default(self, value):
331  new_value = _ListHelper(self.value_semantics)
332  new_value.default = value
333  return new_value
334 

◆ opt_value()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 335 of file semantics.py.

335  def opt_value(self, value):
336  """
337  Option string version of value.
338  """
339  if not isinstance(value, _ListHelper):
340  value = self.default(value)
341  return value.opt_value()
342 
343 

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 325 of file semantics.py.

325  def store(self, value):
326  new_value = _ListHelper(self.value_semantics)
327  new_value.extend(value)
328  return new_value
329 

Member Data Documentation

◆ __handled_types__

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

Definition at line 317 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 321 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:237
GaudiConfig2.semantics.getSemanticsFor
def getSemanticsFor(cpp_type, name=None)
Definition: semantics.py:474
gaudirun.default
default
Definition: gaudirun.py:188