SIXP
SIXP API
 All Classes Functions Variables Enumerations Enumerator Pages
six::sixp::client::irequest_events Class Referenceabstract

Request event interface. More...

Public Member Functions

virtual void on_clear_table (const irequest *req)=0
 Called when the table is cleared, ie all records are deleted.
 
virtual void on_destroyed (const irequest *req)=0
 Called when the request is being destroyed.
 
virtual void on_error (const irequest *req, sixp_int32_t error_code, const char *error_message)=0
 Called when an error occured.
 
virtual void on_fieldset_received (const irequest *req, const field_set_definition *field_set)=0
 Called when the table's fieldset is received.
 
virtual void on_init_table (const irequest *req, sixp_uint64_t num_records, bool changes)=0
 Called when the table is being initialized.
 
virtual void on_record_update (const irequest *req, sixp_uint64_t record_id, const char *key, const field_update *fields, size_t num_fields, record_update_type update_type)=0
 Called when a record is updated.
 
virtual void on_table_filled (const irequest *req)=0
 Called when the initial load is finished and streaming mode is entered.
 
virtual void on_text (const irequest *req, const char *text)=0
 Called when a news text is received.
 

Detailed Description

Request event interface.

Member Function Documentation

virtual void six::sixp::client::irequest_events::on_clear_table ( const irequest req)
pure virtual

Called when the table is cleared, ie all records are deleted.

Parameters
reqThe request.
virtual void six::sixp::client::irequest_events::on_destroyed ( const irequest req)
pure virtual

Called when the request is being destroyed.

Parameters
reqThe request.
virtual void six::sixp::client::irequest_events::on_error ( const irequest req,
sixp_int32_t  error_code,
const char *  error_message 
)
pure virtual

Called when an error occured.

Parameters
reqThe request.
error_codeThe error code.
error_messageMessage describing the error.
virtual void six::sixp::client::irequest_events::on_fieldset_received ( const irequest req,
const field_set_definition field_set 
)
pure virtual

Called when the table's fieldset is received.

Parameters
reqThe request.
field_setThe fieldset.
virtual void six::sixp::client::irequest_events::on_init_table ( const irequest req,
sixp_uint64_t  num_records,
bool  changes 
)
pure virtual

Called when the table is being initialized.

Parameters
reqThe request.
num_recordsNumber of records in the table. 0 if unknown.
changesTrue if only changed fields will be received during the initial load, ie the first record will contain all fields and the following only fields that differ from the previousd record (ony used for day logs).
virtual void six::sixp::client::irequest_events::on_record_update ( const irequest req,
sixp_uint64_t  record_id,
const char *  key,
const field_update fields,
size_t  num_fields,
record_update_type  update_type 
)
pure virtual

Called when a record is updated.

Parameters
reqThe request.
record_idUnique id that identifies the record within the request table.
keyRecord's key. Note that not all tables have keys.
fieldsArray of fields updates.
num_fieldsNumber of fields.
update_typeType of update.
virtual void six::sixp::client::irequest_events::on_table_filled ( const irequest req)
pure virtual

Called when the initial load is finished and streaming mode is entered.

Parameters
reqThe request.
virtual void six::sixp::client::irequest_events::on_text ( const irequest req,
const char *  text 
)
pure virtual

Called when a news text is received.

Parameters
reqThe request.
textThe text in text or xml format depending on what was requested.