GOffice.Unit¶
Fields¶
None
Methods¶
| class | define(symbol, dim, factor_to_SI) | 
| class | get(id) | 
| class | get_from_symbol(symbol) | 
| convert(to, value) | |
| get_id() | |
| get_symbol() | 
Details¶
- 
class GOffice.Unit¶
- 
classmethod define(symbol, dim, factor_to_SI)¶
- Parameters: - Returns: - the named - GOffice.Unit. If a- GOffice.Unitof that name already exists, the existing is returned. Otherwise a new one is created.- Return type: 
 - 
classmethod get(id)¶
- Parameters: - id ( - GOffice.UnitId) –- GOffice.UnitIdfor unit to query- Returns: - the - GOffice.Unitcorresponding to id.- Return type: - GOffice.Unitor- None
 - 
classmethod get_from_symbol(symbol)¶
- Parameters: - symbol ( - str) –- Return type: - GOffice.Unit
 - 
convert(to, value)¶
- Parameters: - to (GOffice.Unit) –
- value (float) –
 - Return type: 
- to (
 - 
get_id()¶
- Return type: - GOffice.UnitId
 
- 
classmethod