The Gaudi Framework  v36r1 (3e2fb5a8)
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 296 of file semantics.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 299 of file semantics.py.

299  def __init__(self, cpp_type, name=None, valueSem=None):
300  super(SequenceSemantics, self).__init__(cpp_type, name)
301  self.value_semantics = valueSem or getSemanticsFor(
302  list(extract_template_args(cpp_type))[0])
303 

Member Function Documentation

◆ default()

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

Definition at line 309 of file semantics.py.

309  def default(self, value):
310  new_value = _ListHelper(self.value_semantics)
311  new_value.default = value
312  return new_value
313 

◆ opt_value()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 314 of file semantics.py.

314  def opt_value(self, value):
315  '''
316  Option string version of value.
317  '''
318  if not isinstance(value, _ListHelper):
319  value = self.default(value)
320  return value.opt_value()
321 
322 

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 304 of file semantics.py.

304  def store(self, value):
305  new_value = _ListHelper(self.value_semantics)
306  new_value.extend(value)
307  return new_value
308 

Member Data Documentation

◆ __handled_types__

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

Definition at line 297 of file semantics.py.

◆ value_semantics

GaudiConfig2.semantics.SequenceSemantics.value_semantics

Definition at line 301 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:216
GaudiConfig2.semantics.getSemanticsFor
def getSemanticsFor(cpp_type, name=None)
Definition: semantics.py:450
gaudirun.default
default
Definition: gaudirun.py:181