CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
quantity_io.hpp File Reference

IO for quantity library. More...

#include "corsika/framework/units/quantity.hpp"
#include <algorithm>
#include <iosfwd>
#include <map>
#include <stdexcept>
#include <string>
#include <sstream>
#include "quantity_io_meter.hpp"
#include "quantity_io_kilogram.hpp"
#include "quantity_io_second.hpp"
#include "quantity_io_ampere.hpp"
#include "quantity_io_mole.hpp"
#include "quantity_io_candela.hpp"
Include dependency graph for quantity_io.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  phys::units::quantity_error
 quantity error base class (not used by quantity itself). More...
 
struct  phys::units::prefix_error
 prefix error, e.g. when prefix is unrecognized. More...
 
struct  phys::units::unit_info< Dims >
 Provide SI units-and-exponents in as close to NIST-specified format as possible with plain ascii. More...
 

Namespaces

 phys
 namespace phys.
 
 phys::units
 namespace units.
 
 phys::units::io
 namespace io.
 

Functions

Rep phys::units::prefix (std::string const prefix_)
 return factor for given prefix.
 
template<typename Dims , typename T >
std::string phys::units::to_magnitude (quantity< Dims, T > const &q)
 magnitude as string.
 
template<typename Dims , typename T >
std::string phys::units::to_unit_name (quantity< Dims, T > const &)
 unit name.
 
template<typename Dims , typename T >
std::string phys::units::to_unit_symbol (quantity< Dims, T > const &)
 unit symbol.
 
std::string phys::units::to_string (long double const value)
 string representation of value.
 
template<typename Dims , typename T >
std::ostream & phys::units::io::operator<< (std::ostream &os, quantity< Dims, T > const &q)
 stream quantity.
 
template<typename Dims , typename T >
std::string phys::units::io::to_string (quantity< Dims, T > const &q)
 quantity string representation.
 

Detailed Description

IO for quantity library.

Author
Michael S. Kenniston, Martin Moene
Date
10 September 2013
Since
0.4

Copyright 2013 Universiteit Leiden. All rights reserved.

Copyright (c) 2001 by Michael S. Kenniston. For the most recent version check www.xnet.com/~msk/quantity. Permission is granted to use this code without restriction so long as this copyright notice appears in all source files.

This code is provided as-is, with no warrantee of correctness.

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Definition in file quantity_io.hpp.