aqbanking  5.0.31beta
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

Definition at line 30 of file value.hpp.

Constructor & Destructor Documentation

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().

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::Value::AB_CXXWRAP_CONSTRUCTOR0 ( Value  ,
AB_Value   
)
AB::Value::AB_CXXWRAP_CONSTRUCTORS ( Value  ,
AB_Value   
)
int AB::Value::AB_CXXWRAP_GET0 ( negate  ,
AB_Value_Negate   
)
long int AB::Value::AB_CXXWRAP_GET0_CONST ( getNum  ,
AB_Value_Num   
)
long int AB::Value::AB_CXXWRAP_GET0_CONST ( getDenom  ,
AB_Value_Denom   
)
double AB::Value::AB_CXXWRAP_GET0_CONST ( getValueAsDouble  ,
AB_Value_GetValueAsDouble   
)
bool AB::Value::AB_CXXWRAP_GET0_CONST ( isZero  ,
AB_Value_IsZero   
)
bool AB::Value::AB_CXXWRAP_GET0_CONST ( isNegative  ,
AB_Value_IsNegative   
)
bool AB::Value::AB_CXXWRAP_GET0_CONST ( isPositive  ,
AB_Value_IsPositive   
)
std::string AB::Value::AB_CXXWRAP_GET0_CONST ( getCurrency  ,
AB_Value_GetCurrency   
)
int AB::Value::AB_CXXWRAP_GET1 ( addValue  ,
const Value ,
AB_Value_AddValue   
)
int AB::Value::AB_CXXWRAP_GET1 ( subValue  ,
const Value ,
AB_Value_SubValue   
)
int AB::Value::AB_CXXWRAP_GET1 ( multValue  ,
const Value ,
AB_Value_MultValue   
)
int AB::Value::AB_CXXWRAP_GET1 ( divValue  ,
const Value ,
AB_Value_DivValue   
)
int AB::Value::AB_CXXWRAP_GET1_CONST ( compare  ,
const Value ,
AB_Value_Compare   
)
bool AB::Value::AB_CXXWRAP_GET1_CONST ( equal  ,
const Value ,
AB_Value_Equal   
)
AB::Value::AB_CXXWRAP_SET0 ( setZero  ,
AB_Value_SetZero   
)
AB::Value::AB_CXXWRAP_SET1 ( setValueFromDouble  ,
double  ,
AB_Value_SetValueFromDouble   
)
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().

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

Definition at line 89 of file value.hpp.

References AB_Value_SetCurrency().

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().

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

Conversion to string.

See Also
AB_Value_toString()

Definition at line 57 of file value.hpp.


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