Elements 6.3.3
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Storage.h File Reference
#include <cstddef>
#include <cstdint>
#include <map>
#include <string>
#include "ElementsKernel/Export.h"
#include "ElementsKernel/_impl/Storage.tpp"
Include dependency graph for Storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Elements
namespace  Elements::Kernel
namespace  Elements::Kernel::Units

Macros

#define ELEMENTSKERNEL_ELEMENTSKERNEL_STORAGE_IMPL_

Enumerations

enum class  Elements::Kernel::Units::StorageType {
  Elements::Kernel::Units::Byte , Elements::Kernel::Units::KiloByte , Elements::Kernel::Units::MegaByte , Elements::Kernel::Units::GigaByte ,
  Elements::Kernel::Units::TeraByte , Elements::Kernel::Units::PetaByte , Elements::Kernel::Units::MetricKiloByte , Elements::Kernel::Units::MetricMegaByte ,
  Elements::Kernel::Units::MetricGigaByte , Elements::Kernel::Units::MetricTeraByte , Elements::Kernel::Units::MetricPetaByte
}

Functions

template<typename T>
ELEMENTS_APIElements::Kernel::Units::roundToDigits (const T &value, const std::size_t &max_digits)
template ELEMENTS_API double Elements::Kernel::Units::roundToDigits< double > (const double &value, const std::size_t &max_digits)
template ELEMENTS_API float Elements::Kernel::Units::roundToDigits< float > (const float &value, const std::size_t &max_digits)
template<std::size_t max_digits, typename T>
ELEMENTS_APIElements::Kernel::Units::storageConvert (const T &size, StorageType source_unit, StorageType target_unit)
template<typename T>
ELEMENTS_APIElements::Kernel::Units::storageConvert (const T &size, StorageType source_unit, StorageType target_unit)
template ELEMENTS_API double Elements::Kernel::Units::storageConvert< double > (const double &size, StorageType source_unit, StorageType target_unit)
template ELEMENTS_API float Elements::Kernel::Units::storageConvert< float > (const float &size, StorageType source_unit, StorageType target_unit)
template ELEMENTS_API std::int64_t Elements::Kernel::Units::storageConvert< std::int64_t > (const std::int64_t &size, StorageType source_unit, StorageType target_unit)

Variables

ELEMENTS_API std::map< StorageType, std::stringElements::Kernel::Units::StorageShortName
ELEMENTS_API std::map< StorageType, std::int64_tElements::Kernel::Units::StorageFactor

Detailed Description

Date
2014-12-22
Author
Hubert Degaudenzi

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file Storage.h.