Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXUnits.h
1 /********************************************************************************
2 * *
3 * U n i t - C o n v e r s i o n s *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2026 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXUNITS_H
22 #define FXUNITS_H
23 
24 namespace FX {
25 
26 namespace Units {
27 
29 const FXuint NotFound=0xFFFFFFFF;
30 
32 extern FXuint lookup(const FXchar* unit);
33 
35 extern FXuint number();
36 
38 extern FXbool basic(FXuint x);
39 
41 extern const FXchar* symbol(FXuint x);
42 
44 extern const FXchar* name(FXuint x);
45 
47 extern const FXchar* expression(FXuint x);
48 
50 extern FXdouble factor(FXuint x);
51 
53 extern FXulong dimensions(FXuint x);
54 
56 extern FXulong dimensions(const FXchar* unit);
57 
59 extern FXbool convert(FXdouble& value,const FXchar* srcUnit,const FXchar* dstUnit);
60 
62 extern FXbool convertToSIFrom(FXdouble& value,const FXchar* srcUnit);
63 
65 extern FXbool convertFromSITo(FXdouble& value,const FXchar* dstUnit);
66 
68 extern FXival span(const FXchar* unit);
69 
70 }
71 }
72 
73 #endif
Definition: FX4Splitter.h:28

Copyright © 1997-2026 Jeroen van der Zijp