class Poco::Util::Units::Units::Prefix

Overview

Parent class for unit prefixes. Moreā€¦

#include <Units.h>

class Prefix
{
public:
    // structs

    template <typename U>
    struct Holder;

    // classes

    class Placeholder;

    // construction

    template <typename T>
    Prefix(
        const T& val,
        double multiplier = 1,
        const std::string& prefix = ""
        );

    // methods

    double
    value() const;

    void
    addPrefix(std::ostream& os) const;

    void
    addUnit(std::ostream& os) const;
};

Detailed Documentation

Parent class for unit prefixes.

Use classes inheriting from this class to scale the values.