NCBI C++ ToolKit
Public Types | Static Public Member Functions | List of all members
CUnit Class Reference

Search Toolkit Book for CUnit

#include <gui/print/print_utils.hpp>

Public Types

enum  EUnit { eInch , eMillimeter , ePdfUnit }
 
typedef enum EUnit TUnit
 
typedef float TInch
 
typedef float TMillimeter
 
typedef float TPdfUnit
 

Static Public Member Functions

static string UnitToString (TUnit unit)
 
static string UnitToSymbol (TUnit unit)
 

Detailed Description

Definition at line 45 of file print_utils.hpp.

Member Typedef Documentation

◆ TInch

typedef float CUnit::TInch

Definition at line 57 of file print_utils.hpp.

◆ TMillimeter

typedef float CUnit::TMillimeter

Definition at line 58 of file print_utils.hpp.

◆ TPdfUnit

typedef float CUnit::TPdfUnit

Definition at line 59 of file print_utils.hpp.

◆ TUnit

typedef enum EUnit CUnit::TUnit

Definition at line 107 of file print_utils.hpp.

Member Enumeration Documentation

◆ EUnit

Enumerator
eInch 
eMillimeter 
ePdfUnit 

Definition at line 48 of file print_utils.hpp.

Member Function Documentation

◆ UnitToString()

static string CUnit::UnitToString ( TUnit  unit)
inlinestatic

Definition at line 62 of file print_utils.hpp.

References eInch, eMillimeter, ePdfUnit, eUnknown, and NCBI_THROW.

◆ UnitToSymbol()

static string CUnit::UnitToSymbol ( TUnit  unit)
inlinestatic

Definition at line 76 of file print_utils.hpp.

References eInch, eMillimeter, and ePdfUnit.


The documentation for this class was generated from the following file:
Modified on Sat Jul 13 13:40:12 2024 by modify_doxy.py rev. 669887