138 if (NONPERSISTVARS.find (cur.first->AsString ()->content ()) == NONPERSISTVARS.end ())
154 if (NONPERSISTVARS.find (cur.first->AsString ()->content ()) == NONPERSISTVARS.end ())
155 into->
SetItem (cur.first, cur.second->AsTuple ()->GetItem (1));
165 if (value ==
nullptr)
173 if (tuple ==
nullptr) {
174 _log(CLIENT__SESSION_NOTFOUND,
"ClientSession::_GetLast - value not found with name '%s'", name);
183 if (tuple ==
nullptr) {
185 _log(CLIENT__SESSION_NOTFOUND,
"ClientSession::_GetCurrent - value not found with name '%s'", name);
196 if (tuple ==
nullptr) {
202 if (value->
hash() != current->hash()) {
std::string GetLastString(const char *name) const
int64 GetLastLong(const char *name) const
std::string GetCurrentString(const char *name) const
static std::string StringContent(PyRep *pRep)
#define _log(type, fmt,...)
PyRep * GetItem(size_t index) const
Returns Python object.
PyRep * GetItemString(const char *key) const
Obtains database entry based on given key string.
void SetLong(const char *name, int64 value)
PyTuple * _GetValueTuple(const char *name) const
void Clear(const char *name)
static std::map< std::string, bool > NONPERSISTVARS
#define is_log_enabled(type)
int64 GetCurrentLong(const char *name) const
PyTuple * new_tuple(int64 arg1)
void SetItem(size_t index, PyRep *object)
Stores Python object.
PyRep * _GetLast(const char *name) const
virtual int32 hash() const
virtual function to generate a hash value of a object.
int32 GetCurrentInt(const char *name) const
PyRep * _GetCurrent(const char *name) const
void SetString(const char *name, const char *value)
void _Set(const char *name, PyRep *value)
int32 GetLastInt(const char *name) const
static int64 IntegerValue(PyRep *pRep)
void SetInt(const char *name, int32 value)
void SetItem(PyRep *key, PyRep *value)
SetItem adds or sets a database entry.
void EncodeChanges(PyDict *into)
void SetItemString(const char *key, PyRep *value)
SetItemString adds or sets a database entry.
void EncodeInitialState(PyDict *into)