[Quantity-devel] generating a list of all units for a certain quantity
Brought to you by:
berndspeiser
|
From: Bernd S. <ber...@un...> - 2004-07-05 11:41:27
|
The AllUnits template now contains a new member function `allsymbols ()'. This returns a std::vector<std::string> of the unit symbols which are listed for a certain quantity. Could be used as std::vector<std::string> timeunit_symbols Time::AllUnits::allsymbols (); This example is included in QuantityTest.cc. Please check under realistic conditions ... Bernd -- =================================================================== Bernd Speiser Institut f"ur Organische Chemie Auf der Morgenstelle 18 D-72076 T"ubingen Germany phone: +49-7071-2976205 (office) +49-7071-2976242 (laboratory) fax: +49-7071-295518 e-mail: ber...@un... Internet: http://www.uni-tuebingen.de/speiser =================================================================== |