The Gaudi Framework  v36r9p1 (5c15b2bb)
GaudiConfig2.semantics.FloatSemantics Class Reference
Inheritance diagram for GaudiConfig2.semantics.FloatSemantics:
Collaboration diagram for GaudiConfig2.semantics.FloatSemantics:

Public Member Functions

def store (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 opt_value (self, value)
 
def merge (self, a, b)
 

Static Private Attributes

tuple __handled_types__ = ("float", "double")
 

Additional Inherited Members

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

Detailed Description

Definition at line 145 of file semantics.py.

Member Function Documentation

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 148 of file semantics.py.

148  def store(self, value):
149  from numbers import Number
150 
151  if not isinstance(value, Number):
152  raise TypeError(
153  "number expected, got {!r} in assignemnt to {}".format(value, self.name)
154  )
155  return float(value)
156 
157 

Member Data Documentation

◆ __handled_types__

tuple GaudiConfig2.semantics.FloatSemantics.__handled_types__ = ("float", "double")
staticprivate

Definition at line 146 of file semantics.py.


The documentation for this class was generated from the following file:
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119