The Gaudi Framework  master (adcf1ca6)
Loading...
Searching...
No Matches
GaudiConfig2.semantics.FloatSemantics Class Reference
Inheritance diagram for GaudiConfig2.semantics.FloatSemantics:
Collaboration diagram for GaudiConfig2.semantics.FloatSemantics:

Public Member Functions

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

Static Private Attributes

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

Additional Inherited Members

- Public Attributes inherited from GaudiConfig2.semantics.PropertySemantics
 cpp_type = cpp_type
 
- Protected Attributes inherited from GaudiConfig2.semantics.PropertySemantics
 _name = None
 
 _cpp_type = value
 

Detailed Description

Definition at line 149 of file semantics.py.

Member Function Documentation

◆ store()

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

Reimplemented from GaudiConfig2.semantics.PropertySemantics.

Definition at line 152 of file semantics.py.

152 def store(self, value):
153 from numbers import Number
154
155 if not isinstance(value, Number):
156 raise TypeError(
157 "number expected, got {!r} in assignment to {}".format(value, self.name)
158 )
159 return float(value)
160
161
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition MsgStream.cpp:93

Member Data Documentation

◆ __handled_types__

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

Definition at line 150 of file semantics.py.


The documentation for this class was generated from the following file: