aqbanking  5.7.8
Public Types | Public Member Functions | Static Public Member Functions
AB::Value Class Reference

#include <value.hpp>

Public Types

typedef AB_VALUE wrapped_type
 

Public Member Functions

 AB_CXXWRAP_CONSTRUCTOR0 (Value, AB_Value)
 
 AB_CXXWRAP_CONSTRUCTORS (Value, AB_Value)
 
 Value (double d)
 
 Value (long int num, long int denom)
 
void toString (GWEN_BUFFER *buf) const
 
std::string toString () const
 
long int AB_CXXWRAP_GET0_CONST (getNum, AB_Value_Num)
 
long int AB_CXXWRAP_GET0_CONST (getDenom, AB_Value_Denom)
 
double AB_CXXWRAP_GET0_CONST (getValueAsDouble, AB_Value_GetValueAsDouble)
 
 AB_CXXWRAP_SET1 (setValueFromDouble, double, AB_Value_SetValueFromDouble)
 
 AB_CXXWRAP_SET0 (setZero, AB_Value_SetZero)
 
bool AB_CXXWRAP_GET0_CONST (isZero, AB_Value_IsZero)
 
bool AB_CXXWRAP_GET0_CONST (isNegative, AB_Value_IsNegative)
 
bool AB_CXXWRAP_GET0_CONST (isPositive, AB_Value_IsPositive)
 
int AB_CXXWRAP_GET1_CONST (compare, const Value &, AB_Value_Compare)
 
bool AB_CXXWRAP_GET1_CONST (equal, const Value &, AB_Value_Equal)
 
int AB_CXXWRAP_GET1 (addValue, const Value &, AB_Value_AddValue)
 
int AB_CXXWRAP_GET1 (subValue, const Value &, AB_Value_SubValue)
 
int AB_CXXWRAP_GET1 (multValue, const Value &, AB_Value_MultValue)
 
int AB_CXXWRAP_GET1 (divValue, const Value &, AB_Value_DivValue)
 
int AB_CXXWRAP_GET0 (negate, AB_Value_Negate)
 
std::string AB_CXXWRAP_GET0_CONST (getCurrency, AB_Value_GetCurrency)
 
void setCurrency (const std::string &s)
 

Static Public Member Functions

static Value fromString (const std::string &s)
 

Detailed Description

A wrapper class around the AB_VALUE rational number type

Definition at line 25 of file value.hpp.

Member Typedef Documentation

◆ wrapped_type

Definition at line 30 of file value.hpp.

Constructor & Destructor Documentation

◆ Value() [1/2]

AB::Value::Value ( double  d)
inline

Extra constructor: Create this value from a double.

See also
AB_Value_fromDouble()

Definition at line 40 of file value.hpp.

Referenced by fromString().

◆ Value() [2/2]

AB::Value::Value ( long int  num,
long int  denom 
)
inline

Extra constructor: Create this value from two integer values for numerator and denominator.

See also
AB_Value_fromInt()

Definition at line 46 of file value.hpp.

Member Function Documentation

◆ AB_CXXWRAP_CONSTRUCTOR0()

AB::Value::AB_CXXWRAP_CONSTRUCTOR0 ( Value  ,
AB_Value   
)

◆ AB_CXXWRAP_CONSTRUCTORS()

AB::Value::AB_CXXWRAP_CONSTRUCTORS ( Value  ,
AB_Value   
)

◆ AB_CXXWRAP_GET0()

int AB::Value::AB_CXXWRAP_GET0 ( negate  ,
AB_Value_Negate   
)

Referenced by toString().

◆ AB_CXXWRAP_GET0_CONST() [1/7]

long int AB::Value::AB_CXXWRAP_GET0_CONST ( getNum  ,
AB_Value_Num   
)

Referenced by toString().

◆ AB_CXXWRAP_GET0_CONST() [2/7]

long int AB::Value::AB_CXXWRAP_GET0_CONST ( getDenom  ,
AB_Value_Denom   
)

◆ AB_CXXWRAP_GET0_CONST() [3/7]

double AB::Value::AB_CXXWRAP_GET0_CONST ( getValueAsDouble  ,
AB_Value_GetValueAsDouble   
)

◆ AB_CXXWRAP_GET0_CONST() [4/7]

bool AB::Value::AB_CXXWRAP_GET0_CONST ( isZero  ,
AB_Value_IsZero   
)

◆ AB_CXXWRAP_GET0_CONST() [5/7]

bool AB::Value::AB_CXXWRAP_GET0_CONST ( isNegative  ,
AB_Value_IsNegative   
)

◆ AB_CXXWRAP_GET0_CONST() [6/7]

bool AB::Value::AB_CXXWRAP_GET0_CONST ( isPositive  ,
AB_Value_IsPositive   
)

◆ AB_CXXWRAP_GET0_CONST() [7/7]

std::string AB::Value::AB_CXXWRAP_GET0_CONST ( getCurrency  ,
AB_Value_GetCurrency   
)

◆ AB_CXXWRAP_GET1() [1/4]

int AB::Value::AB_CXXWRAP_GET1 ( addValue  ,
const Value ,
AB_Value_AddValue   
)

Referenced by toString().

◆ AB_CXXWRAP_GET1() [2/4]

int AB::Value::AB_CXXWRAP_GET1 ( subValue  ,
const Value ,
AB_Value_SubValue   
)

◆ AB_CXXWRAP_GET1() [3/4]

int AB::Value::AB_CXXWRAP_GET1 ( multValue  ,
const Value ,
AB_Value_MultValue   
)

◆ AB_CXXWRAP_GET1() [4/4]

int AB::Value::AB_CXXWRAP_GET1 ( divValue  ,
const Value ,
AB_Value_DivValue   
)

◆ AB_CXXWRAP_GET1_CONST() [1/2]

int AB::Value::AB_CXXWRAP_GET1_CONST ( compare  ,
const Value ,
AB_Value_Compare   
)

Referenced by toString().

◆ AB_CXXWRAP_GET1_CONST() [2/2]

bool AB::Value::AB_CXXWRAP_GET1_CONST ( equal  ,
const Value ,
AB_Value_Equal   
)

◆ AB_CXXWRAP_SET0()

AB::Value::AB_CXXWRAP_SET0 ( setZero  ,
AB_Value_SetZero   
)

Referenced by toString().

◆ AB_CXXWRAP_SET1()

AB::Value::AB_CXXWRAP_SET1 ( setValueFromDouble  ,
double  ,
AB_Value_SetValueFromDouble   
)

Referenced by toString().

◆ fromString()

static Value AB::Value::fromString ( const std::string &  s)
inlinestatic

Conversion from string.

See also
AB_Value_fromString()

Definition at line 95 of file value.hpp.

References AB_Value_fromString(), and Value().

◆ setCurrency()

void AB::Value::setCurrency ( const std::string &  s)
inline

Definition at line 89 of file value.hpp.

References AB_Value_SetCurrency().

◆ toString() [1/2]

void AB::Value::toString ( GWEN_BUFFER *  buf) const
inline

Conversion to string.

See also
AB_Value_toString()

Definition at line 51 of file value.hpp.

References AB_Value_toString().

◆ toString() [2/2]

std::string AB::Value::toString ( ) const
inline

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