In file /home/eternity/Source/Eso/Banker/H/banker.h:

class CurrPay : public Payment

Current Payment

Inheritance:

CurrPay < Payment < PayRecord


Public Methods

CurrPay::CurrPay ()
Current Payment Costructor
Err CurrPay::FetchFromRecord (Record *r)
Fetches from given record
Err CurrPay::FillRecord (Record *r)
Fills given record
MsgField* CurrPay::GetAuth (Char *whichAuth)
Returns requested authentification
ID CurrPay::GetID (Char *whichId)
Returns requested ID
MsgField* CurrPay::GetMAC ()
Get MAC
Int CurrPay::GetState ()
Get State Of Current Payment
Int CurrPay::NumOfTries (Char operation)
Get number of tries
Err CurrPay::SetAuth (Char *whichAuth, MsgField *auth)
Sets authentification
Err CurrPay::SetID (Char *whichId, ID value)
Sets given ID
Err CurrPay::SetMAC (MsgField *mac)
Set MAC
Err CurrPay::SetState (Int st)
Set State Of Current Payment
Err CurrPay::WriteToTable (Table *t, Char *reason)
Writes record to given table
CurrPay::~CurrPay ()
Current Payment Destructor

Public

methods

Protected

attributes

Inherited from Payment:

Public Methods

Void Payment::Clear()
Err Payment::FetchFromRecord(Record *r)
Err Payment::FillRecord(Record *r)
Char* Payment::GetAmount()
ID Payment::GetID(Char *whichId)
ESTime Payment::GetTime()
Payment::Payment()
Err Payment::SetID(Char *whichId, ID value)
Payment::~Payment()

Inherited from PayRecord:

Public Methods

Void PayRecord::Clear()
Err PayRecord::FetchAndDeleteFromTable(Table *t, Char *whichId, ID value)
Err PayRecord::FetchFromTable(Table *t, Char *whichId, ID value)
Err PayRecord::IsOK()
PayRecord::PayRecord()
Err PayRecord::UpdateTable(Table *t)
Err PayRecord::WriteToTable(Table *t)
PayRecord::~PayRecord()

Documentation

Current Payment. An auxiliary class for one currently taken payment in Eso.
attributes

methods

CurrPay::CurrPay()
Current Payment Costructor. Current Payment constructor initializes class variables.
Author:
Ivana
See Also:
Banker::TimeForPayment(), Banker::ChallengeFromBank(), Banker::AnswerFromBank(), Banker::TimeOutPayment(),

Err CurrPay::FetchFromRecord(Record *r)
Fetches from given record. Fetches data from given record. A virtual method, that should be overwritten, to be able to read from table. (We will not use this method.)
Returns:
error code
Parameters:
r - record from which we take data
Author:
Ivana
See Also:
PayRecord

Err CurrPay::FillRecord(Record *r)
Fills given record. Fills given record with data. A virtual method, that should be overwritten, to be able to write to or update table.
Returns:
error code
Parameters:
r - record into which we store data
Author:
Ivana
See Also:
PayRecord

MsgField* CurrPay::GetAuth(Char *whichAuth)
Returns requested authentification. Returns 'whichAuth' value or NULL.
Parameters:
whichId - name of auhtentification we want to get
Author:
Ivana
See Also:
Banker::GenerateAnswer()

ID CurrPay::GetID(Char *whichId)
Returns requested ID. Returns 'whichId' ID value or BAD_ID.
Parameters:
whichId - name of ID we want to get
Author:
Ivana
See Also:
Banker

MsgField* CurrPay::GetMAC()
Get MAC. Returns our mac field in new MsgField.
Returns:
copy of mac
Author:
Ivana
See Also:
Banker::GenerateAnswer()

Int CurrPay::GetState()
Get State Of Current Payment. Returns a value of state field.
Returns:
state value
Author:
Ivana
See Also:
Banker

Int CurrPay::NumOfTries(Char operation)
Get number of tries. If the operation is 'plus', first increase numOfTries and then return it. If the operation is 'one', sets numOfTries to 1, else return numOfTries.
Parameters:
operation - which operation should be done before return numOfTries
Author:
Ivana
See Also:
Banker::PartialUpdateCurrPays(), Banker::TimeOutCurrPay(), Banker::TimeOutPayment()

Err CurrPay::SetAuth(Char *whichAuth, MsgField *auth)
Sets authentification. Sets 'whichAuth' authentification with new value.
Returns:
error code
Parameters:
whichId - name of auhtentification we want to set
auth - a new value for the auhtentification
Author:
Ivana
See Also:
Banker::ChallengeOK()

Err CurrPay::SetID(Char *whichId, ID value)
Sets given ID. Sets 'whichId' ID value.
Returns:
error code
Parameters:
whichId - name of ID we want to set
Author:
Ivana
See Also:
Banker

Err CurrPay::SetMAC(MsgField *mac)
Set MAC. Sets our MAC to given one.
Returns:
error code
Parameters:
mac - new mac for setting our data
Author:
Ivana
See Also:
Banker::ChallengeOK()

Err CurrPay::SetState(Int st)
Set State Of Current Payment. Set state of current payment field with given value.
Returns:
OK if st is ANSWER or REQUEST, KO otherwise
Parameters:
st - a new value for the state
Author:
Ivana
See Also:
Banker::ChallengeOK()

Err CurrPay::WriteToTable(Table *t, Char *reason)
Writes record to given table. Writes (inserts) a record to given table (it does not change eCode variable).
Parameters:
t - table to which we will write new record
reason - reason of fail - an additional parametr for filling 'Reason-Of-Fail' field in some tables
Author:
Ivana
See Also:
Banker::TimeForPayment(), Banker::TimeOutPayment(), Banker::ChallengeOK(), Banker::ChallengeKO(), Banker::AnswerKO(), Banker::TimeOutCurrPay(),

CurrPay::~CurrPay()
Current Payment Destructor. Current Payment destructor deletes class variables.
Author:
Ivana
See Also:
Banker::TimeForPayment(), Banker::ChallengeFromBank(), Banker::AnswerFromBank(), Banker::TimeOutPayment(),


This class has no child classes.
Author:
Ivana
See Also:

alphabetic index hierarchy of classes


generated by doc++