59 lines
2.4 KiB
C
59 lines
2.4 KiB
C
//! \~\file piunits_class_distance.h
|
||
//! \~\ingroup Units
|
||
//! \~\brief
|
||
//! \~english Distance unit family descriptor
|
||
//! \~russian Описатель семейства единиц расстояния
|
||
//!
|
||
//! \~\details
|
||
//! \~english
|
||
//! Declares %PIUnits::Class::Distance and its public type identifiers for distance conversions.
|
||
//! \~russian
|
||
//! Объявляет %PIUnits::Class::Distance и его публичные идентификаторы типов для преобразования расстояний.
|
||
/*
|
||
PIP - Platform Independent Primitives
|
||
Distance units
|
||
Ivan Pelipenko peri4ko@yandex.ru
|
||
|
||
This program 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 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program 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 program. If not, see <http://www.gnu.org/licenses/>.
|
||
*/
|
||
|
||
#ifndef PIUNITS_CLASS_DISTANCE_H
|
||
#define PIUNITS_CLASS_DISTANCE_H
|
||
|
||
#include "piunits_base.h"
|
||
|
||
//! \class PIUnits::Class::Distance
|
||
//! \~\ingroup Units
|
||
//! \~\brief
|
||
//! \~english Descriptor of distance units and their public type identifiers.
|
||
//! \~russian Описатель единиц расстояния и их публичных идентификаторов типов.
|
||
DECLARE_UNIT_CLASS_BEGIN(Distance, 0x600)
|
||
//! \~english Supported distance unit type identifiers.
|
||
//! \~russian Поддерживаемые идентификаторы типов единиц расстояния.
|
||
enum {
|
||
Meter = typeStart /** \~english Meter \~russian Метр */,
|
||
Inch /** \~english Inch \~russian Дюйм */,
|
||
Mil /** \~english Mil or thou \~russian Мил или thou */,
|
||
Foot /** \~english Foot \~russian Фут */,
|
||
Yard /** \~english Yard \~russian Ярд */,
|
||
|
||
Angstrom /** \~english Angstrom \~russian Ангстрем */,
|
||
AstronomicalUnit /** \~english Astronomical unit \~russian Астрономическая единица */,
|
||
|
||
_LastType
|
||
};
|
||
DECLARE_UNIT_CLASS_END(Distance)
|
||
|
||
#endif
|