Elements  6.2
A C++ base framework for the Euclid Software.
Namespaces | Macros | Enumerations | Functions | Variables
Storage.h File Reference
#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

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

Macros

#define ELEMENTSKERNEL_ELEMENTSKERNEL_STORAGE_IMPL_
 

Enumerations

enum  Elements::Kernel::Units::StorageType {
  Elements::Kernel::Units::StorageType::Byte, Elements::Kernel::Units::StorageType::KiloByte, Elements::Kernel::Units::StorageType::MegaByte, Elements::Kernel::Units::StorageType::GigaByte,
  Elements::Kernel::Units::StorageType::TeraByte, Elements::Kernel::Units::StorageType::PetaByte, Elements::Kernel::Units::StorageType::MetricKiloByte, Elements::Kernel::Units::StorageType::MetricMegaByte,
  Elements::Kernel::Units::StorageType::MetricGigaByte, Elements::Kernel::Units::StorageType::MetricTeraByte, Elements::Kernel::Units::StorageType::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
Dec 22, 2014
Author
hubert

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.