16#ifndef INCLUDED_Lightstreamer_ItemUpdate
17#define INCLUDED_Lightstreamer_ItemUpdate
19#include "../Lightstreamer.h"
21namespace Lightstreamer {
55 explicit ItemUpdate(HaxeObject hxObj) : _delegate(hxObj) {}
58 Lightstreamer_releaseHaxeObject(_delegate);
68 return ItemUpdate_getItemName(_delegate);
78 return ItemUpdate_getItemPos(_delegate);
96 std::string
getValue(
const std::string& fieldName) {
97 return ItemUpdate_getValueByName(_delegate, &fieldName);
117 return ItemUpdate_getValueByPos(_delegate, fieldPos);
132 bool isNull(
const std::string& fieldName) {
133 return ItemUpdate_isNullByName(_delegate, &fieldName);
149 return ItemUpdate_isNullByPos(_delegate, fieldPos);
174 return ItemUpdate_isSnapshot(_delegate);
200 return ItemUpdate_isValueChangedByName(_delegate, &fieldName);
227 return ItemUpdate_isValueChangedByPos(_delegate, fieldPos);
246 return ItemUpdate_getChangedFields(_delegate);
263 return ItemUpdate_getChangedFieldsByPosition(_delegate);
277 return ItemUpdate_getFields(_delegate);
289 return ItemUpdate_getFieldsByPosition(_delegate);
Contains all the information related to an update of the field values for an item.
Definition ItemUpdate.h:47
bool isNull(const std::string &fieldName)
Returns whether the current value received from the Server for the specified field is null.
Definition ItemUpdate.h:132
std::string getValue(int fieldPos)
Returns the current value for the specified field.
Definition ItemUpdate.h:116
std::string getValue(const std::string &fieldName)
Returns the current value for the specified field.
Definition ItemUpdate.h:96
std::string getItemName()
Inquiry method that retrieves the name of the item to which this update pertains.
Definition ItemUpdate.h:67
bool isValueChanged(int fieldPos)
Inquiry method that asks whether the value for a field has changed after the reception of the last up...
Definition ItemUpdate.h:226
bool isValueChanged(const std::string &fieldName)
Inquiry method that asks whether the value for a field has changed after the reception of the last up...
Definition ItemUpdate.h:199
int getItemPos()
Inquiry method that retrieves the position in the "Item List" or "Item Group" of the item to which th...
Definition ItemUpdate.h:77
std::map< int, std::string > getChangedFieldsByPosition()
Returns a map containing the values for each field changed with the last server update.
Definition ItemUpdate.h:262
bool isNull(int fieldPos)
Returns whether the current value received from the Server for the specified field is null.
Definition ItemUpdate.h:148
std::map< std::string, std::string > getChangedFields()
Returns a map containing the values for each field changed with the last server update.
Definition ItemUpdate.h:245
std::map< std::string, std::string > getFields()
Returns a map containing the values for each field in the Subscription.
Definition ItemUpdate.h:276
std::map< int, std::string > getFieldsByPosition()
Returns a map containing the values for each field in the Subscription.
Definition ItemUpdate.h:288
bool isSnapshot()
Inquiry method that asks whether the current update belongs to the item snapshot (which carries the c...
Definition ItemUpdate.h:173