Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Units.C File Reference

#include <ctype.h>
#include "Units.H"

Go to the source code of this file.

Defines

#define DEC_ONE_K   CONST_UINT_64(1000)
#define DEC_ONE_M   CONST_UINT_64(1000000)
#define DEC_ONE_G   CONST_UINT_64(1000000000)
#define DEC_ONE_T   CONST_UINT_64(1000000000000)
#define DEC_ONE_P   CONST_UINT_64(1000000000000000)
#define DEC_ONE_E   CONST_UINT_64(1000000000000000000)
#define BIN_ONE_K   (CONST_UINT_64(1)<<10)
#define BIN_ONE_M   (CONST_UINT_64(1)<<20)
#define BIN_ONE_G   (CONST_UINT_64(1)<<30)
#define BIN_ONE_T   (CONST_UINT_64(1)<<40)
#define BIN_ONE_P   (CONST_UINT_64(1)<<50)
#define BIN_ONE_E   (CONST_UINT_64(1)<<60)

Functions

Text Basics::FormatUnitVal (Basics::uint64 val, bool decimal) throw ()
Basics::uint64 Basics::ParseUnitVal (const char *val, bool decimal) throw (Basics::ParseUnitValFailure)


Define Documentation

#define BIN_ONE_E   (CONST_UINT_64(1)<<60)
 

Definition at line 43 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define BIN_ONE_G   (CONST_UINT_64(1)<<30)
 

Definition at line 40 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define BIN_ONE_K   (CONST_UINT_64(1)<<10)
 

Definition at line 38 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define BIN_ONE_M   (CONST_UINT_64(1)<<20)
 

Definition at line 39 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define BIN_ONE_P   (CONST_UINT_64(1)<<50)
 

Definition at line 42 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define BIN_ONE_T   (CONST_UINT_64(1)<<40)
 

Definition at line 41 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_E   CONST_UINT_64(1000000000000000000)
 

Definition at line 32 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_G   CONST_UINT_64(1000000000)
 

Definition at line 29 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_K   CONST_UINT_64(1000)
 

Definition at line 27 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_M   CONST_UINT_64(1000000)
 

Definition at line 28 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_P   CONST_UINT_64(1000000000000000)
 

Definition at line 31 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().

#define DEC_ONE_T   CONST_UINT_64(1000000000000)
 

Definition at line 30 of file Units.C.

Referenced by Basics::FormatUnitVal(), and Basics::ParseUnitVal().


Function Documentation

Text Basics::FormatUnitVal Basics::uint64  val,
bool  decimal
throw ()
 

Definition at line 45 of file Units.C.

References BIN_ONE_E, BIN_ONE_G, BIN_ONE_K, BIN_ONE_M, BIN_ONE_P, BIN_ONE_T, DEC_ONE_E, DEC_ONE_G, DEC_ONE_K, DEC_ONE_M, DEC_ONE_P, and DEC_ONE_T.

Basics::uint64 Basics::ParseUnitVal const char *  val,
bool  decimal
throw (Basics::ParseUnitValFailure)
 

Definition at line 97 of file Units.C.

References BIN_ONE_E, BIN_ONE_G, BIN_ONE_K, BIN_ONE_M, BIN_ONE_P, BIN_ONE_T, DEC_ONE_E, DEC_ONE_G, DEC_ONE_K, DEC_ONE_M, DEC_ONE_P, DEC_ONE_T, and Basics::ParseUnitValFailure::emsg.


Generated on Mon May 8 00:49:00 2006 for Vesta by  doxygen 1.4.2