Separatista
Separatista::IBAN Class Reference

Public Member Functions

 IBAN ()
 
IBANoperator= (const char *iban)
 
IBANoperator= (const wchar_t *pIBAN)
 
void set (const char *iban)
 
void set (const wchar_t *pIBAN)
 
const char * getIBAN ()
 
 operator const char * ()
 
const IBANCC & getCountryCode () const
 
const IBANCC & getControlSum () const
 
bool Check () const
 
void Clear ()
 

Protected Member Functions

void format (bool seperator=true)
 
void mbformat (bool separator=true)
 

Constructor & Destructor Documentation

◆ IBAN()

IBAN::IBAN ( )

Constructor

Member Function Documentation

◆ Check()

bool IBAN::Check ( ) const

Checks a IBAN for validity. This is done with the controlsum, no other checks are being made.

◆ Clear()

void IBAN::Clear ( )

Clears all values

◆ format()

void IBAN::format ( bool  seperator = true)
protected

Writes the value of this IBAN to the internal buffer.

Parameters
seperatorIf true, the IBAN is divided every four characters by a space (NL00 RBOS 0123 4567 89)

◆ getControlSum()

const IBANCC & IBAN::getControlSum ( ) const

returns the 2 characters long controlsum

◆ getCountryCode()

const IBANCC & IBAN::getCountryCode ( ) const

returns the 2 characters long countrycode

◆ getIBAN()

const char * IBAN::getIBAN ( )

Returns the formatted IBAN.

Returns
Pointer to a internal buffer. The buffer is only valid until the next call to this object is made. It's recommended to copy the contents as soon as possible.

◆ mbformat()

void IBAN::mbformat ( bool  separator = true)
protected

C string equivalent of format

See also
format

◆ operator const char *()

IBAN::operator const char * ( )
See also
getIBAN()

◆ operator=() [1/2]

IBAN & IBAN::operator= ( const char *  iban)

Sets the value from a string

◆ operator=() [2/2]

IBAN & IBAN::operator= ( const wchar_t *  pIBAN)

Set the value from a wide char string

◆ set() [1/2]

void IBAN::set ( const char *  iban)

Sets the value from a string, no error checking is applied

◆ set() [2/2]

void IBAN::set ( const wchar_t *  pIBAN)

Sets the value from a wide string, no error checking is applied


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