CFx SDK Documentation  2022 SP0
Public Member Functions | Static Public Member Functions | List of all members
OdUnitsFormatterTool Class Reference

#include <OdUnitsFormatter.h>

Public Member Functions

 OdUnitsFormatterTool ()
 
 ~OdUnitsFormatterTool ()
 

Static Public Member Functions

static OdString formatDecimal (double value, int precision, int dimzin, const OdChar *decsep, const OdChar *thsep=0)
 
static double angle (const OdChar *&buf, bool refuseDots=false)
 
static int toInt (const OdString &sValue, int nMinValid=INT_MIN, int nMaxValid=INT_MAX)
 
static bool isZero (double v, int precision)
 
static OdString formatArchitectural (bool isNegative, int feet, int entier, int numerator, int denominator, int dimzin, int mode)
 
static bool negative (const OdChar *&buf)
 
static double integer (const OdChar *&buf)
 
static void fraction (double value, int &entier, int &numerator, int &denominator, int precision)
 
static double base_denominator (int prec, double base)
 
static double linear_denominator (int prec)
 
static bool digit (OdChar c)
 
static double denominator (int prec)
 
static void decomp (double v, int &degs, int &mins, double &secs, int prec)
 
static OdString format (int degs, int mins, double secs, int prec)
 
static OdString next (OdString &list, const OdChar *delim=OD_T(","))
 
static int countOccurences (const OdString &string, OdChar delim=',')
 

Detailed Description

This class defines the interface for a Units Formatter.

<group Other_Classes>

Definition at line 190 of file OdUnitsFormatter.h.

Constructor & Destructor Documentation

◆ OdUnitsFormatterTool()

OdUnitsFormatterTool::OdUnitsFormatterTool ( )
inline

Definition at line 193 of file OdUnitsFormatter.h.

◆ ~OdUnitsFormatterTool()

OdUnitsFormatterTool::~OdUnitsFormatterTool ( )
inline

Definition at line 194 of file OdUnitsFormatter.h.

Member Function Documentation

◆ angle()

static double OdUnitsFormatterTool::angle ( const OdChar *&  buf,
bool  refuseDots = false 
)
static

◆ base_denominator()

static double OdUnitsFormatterTool::base_denominator ( int  prec,
double  base 
)
inlinestatic

Definition at line 216 of file OdUnitsFormatter.h.

◆ countOccurences()

static int OdUnitsFormatterTool::countOccurences ( const OdString string,
OdChar  delim = ',' 
)
inlinestatic

Definition at line 305 of file OdUnitsFormatter.h.

◆ decomp()

static void OdUnitsFormatterTool::decomp ( double  v,
int &  degs,
int &  mins,
double &  secs,
int  prec 
)
static

◆ denominator()

static double OdUnitsFormatterTool::denominator ( int  prec)
inlinestatic

Definition at line 234 of file OdUnitsFormatter.h.

◆ digit()

static bool OdUnitsFormatterTool::digit ( OdChar  c)
inlinestatic

Definition at line 229 of file OdUnitsFormatter.h.

◆ format()

static OdString OdUnitsFormatterTool::format ( int  degs,
int  mins,
double  secs,
int  prec 
)
inlinestatic

Definition at line 266 of file OdUnitsFormatter.h.

◆ formatArchitectural()

static OdString OdUnitsFormatterTool::formatArchitectural ( bool  isNegative,
int  feet,
int  entier,
int  numerator,
int  denominator,
int  dimzin,
int  mode 
)
static

◆ formatDecimal()

static OdString OdUnitsFormatterTool::formatDecimal ( double  value,
int  precision,
int  dimzin,
const OdChar decsep,
const OdChar thsep = 0 
)
static

◆ fraction()

static void OdUnitsFormatterTool::fraction ( double  value,
int &  entier,
int &  numerator,
int &  denominator,
int  precision 
)
inlinestatic

Definition at line 203 of file OdUnitsFormatter.h.

◆ integer()

static double OdUnitsFormatterTool::integer ( const OdChar *&  buf)
static

◆ isZero()

static bool OdUnitsFormatterTool::isZero ( double  v,
int  precision 
)
static

◆ linear_denominator()

static double OdUnitsFormatterTool::linear_denominator ( int  prec)
inlinestatic

Definition at line 224 of file OdUnitsFormatter.h.

◆ negative()

static bool OdUnitsFormatterTool::negative ( const OdChar *&  buf)
static

◆ next()

static OdString OdUnitsFormatterTool::next ( OdString list,
const OdChar delim = OD_T(",") 
)
inlinestatic

Definition at line 291 of file OdUnitsFormatter.h.

◆ toInt()

static int OdUnitsFormatterTool::toInt ( const OdString sValue,
int  nMinValid = INT_MIN,
int  nMaxValid = INT_MAX 
)
static

The documentation for this class was generated from the following file: