Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cVariantCommon Struct Reference

#include <cVariantData.h>

Inheritance diagram for GrayLib::cVariantCommon:
GrayLib::cVarMap GrayLib::cVariantArray GrayLib::cVariantArrayT GrayLib::cVariantData GrayLib::cVariantMap GrayLib::cVariant

Public Types

typedef INT32 CYS_t
 type for 2 fixed point int for currency/money. More...
 
typedef INT64 CY_t
 type for 4 fixed point int for currency/money. More...
 

Static Public Member Functions

static StrLen_t GRAYCALL CopyLenQ (ATOMCHAR_t *pszDst, const ATOMCHAR_t *pszSrc, StrLen_t iLenMax, STR_BLOCK_TYPE eBlock)
 When converting to string. More...
 

Static Public Attributes

static const ITERATE_t k_MaxElements = 64*1024
 (arbitrary) Max elements that may be parsed in array or map. More...
 
static const ITERATE_t k_MaxElements2 = 256
 arbitrary max for simple things. More...
 
static const CYS_t k_CYSMul = 100
 2 fixed places = cents. CYS_t More...
 
static const CY_t k_CYMul = 10000
 4 fixed places = hundredths of a cent. CY_t More...
 

Detailed Description

Static stuff common to several variant base classes.

Member Typedef Documentation

◆ CY_t

type for 4 fixed point int for currency/money.

◆ CYS_t

type for 2 fixed point int for currency/money.

Member Function Documentation

◆ CopyLenQ()

StrLen_t GRAYCALL GrayLib::cVariantCommon::CopyLenQ ( ATOMCHAR_t pszDst,
const ATOMCHAR_t pszSrc,
StrLen_t  iLenMax,
STR_BLOCK_TYPE  eBlock 
)
static

When converting to string.

Create/Copy a quoted string. Assume ESC encode is already done or not needed.

Member Data Documentation

◆ k_CYMul

const CY_t GrayLib::cVariantCommon::k_CYMul = 10000
static

4 fixed places = hundredths of a cent. CY_t

◆ k_CYSMul

const CYS_t GrayLib::cVariantCommon::k_CYSMul = 100
static

2 fixed places = cents. CYS_t

◆ k_MaxElements

const ITERATE_t GrayLib::cVariantCommon::k_MaxElements = 64*1024
static

(arbitrary) Max elements that may be parsed in array or map.

◆ k_MaxElements2

const ITERATE_t GrayLib::cVariantCommon::k_MaxElements2 = 256
static

arbitrary max for simple things.


The documentation for this struct was generated from the following files: