![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cStream.h>
Public Member Functions | |
cStreamTransaction (cStreamInput *pInp) | |
~cStreamTransaction () | |
bool | isTransactionActive () const |
void | SetTransactionComplete () |
void | SetTransactionCompleteN (size_t nSize) |
void | SetTransactionFailed () |
void | SetTransactionRollback () |
Public Attributes | |
cStreamInput * | m_pInp |
Pull transaction data from this stream. More... | |
STREAM_SEEKRET_t | m_lPosStart |
size_t | m_nSeekSizeMinPrev |
Previous value. Maybe nested transactions ! More... | |
Protected Member Functions | |
HRESULT | TransactionRollback () |
we are reading a single message / Transaction from the stream. We need to read all of it or roll back.
|
inline |
|
inline |
if we didn't say it was a success, do a rollback on destruct.
|
inline |
Was SetTransactionComplete called ?
|
inline |
Success. we got what we wanted. no rollback.
|
inline |
|
inline |
The stream broke in some way. e.g. socket close. assume connection is broken. no rollback.
|
inline |
default behavior if closed without calling SetTransactionComplete() or SetTransactionFailed(). if we didn't say it was a success, do a rollback on destruct.
|
inlineprotected |
STREAM_SEEKRET_t Gray::cStreamTransaction::m_lPosStart |
size_t Gray::cStreamTransaction::m_nSeekSizeMinPrev |
Previous value. Maybe nested transactions !
cStreamInput* Gray::cStreamTransaction::m_pInp |
Pull transaction data from this stream.