Pyro higlevel API
|
Classes | |
struct | Internal |
Public Types | |
enum | { ERR_OK = 0, ERR_INVALID_DATA = -1, ERR_SUSPENDED = -2 } |
Public Member Functions | |
Translator () | |
virtual | ~Translator () |
void | SetMessage (const Message &cMsg) |
void | SetTarget (const Messenger &cTarget, bool bSendData) |
void | SetTarget (DataReceiver *pcTarget) |
virtual void | SetConfig (const Message &cConfig)=0 |
virtual status_t | AddData (const void *pData, size_t nLen, bool bFinal) |
virtual ssize_t | AvailableDataSize ()=0 |
virtual ssize_t | Read (void *pData, size_t nLen)=0 |
virtual void | Abort ()=0 |
virtual void | Reset ()=0 |
Protected Member Functions | |
virtual status_t | DataAdded (void *pData, size_t nLen, bool bFinal) |
void | Invoke (void *pData, size_t nSize, bool bFinal) |
Translator::Translator | ( | ) |
|
virtual |
|
pure virtual |
|
virtual |
References DataAdded(), os::Translator::Internal::m_nBufSize, os::Translator::Internal::m_pnBuffer, and os::Translator::Internal::ResizeBuffer().
Referenced by os::BitmapImage::Load(), and os::BitmapImage::Save().
|
pure virtual |
|
protectedvirtual |
Referenced by AddData().
|
protected |
References os::Message::AddBool(), os::Message::AddData(), os::Message::AddInt32(), os::DataReceiver::DataReady(), os::Messenger::IsValid(), os::Translator::Internal::m_bSendData, os::Translator::Internal::m_cMessage, os::Translator::Internal::m_cMsgTarget, os::Translator::Internal::m_pcDataTarget, os::Messenger::SendMessage(), and os::T_ANY_TYPE.
|
pure virtual |
Referenced by os::BitmapImage::Load(), and os::BitmapImage::Save().
|
pure virtual |
|
pure virtual |
void Translator::SetMessage | ( | const Message & | cMsg | ) |
References os::Translator::Internal::m_cMessage.
void Translator::SetTarget | ( | const Messenger & | cTarget, |
bool | bSendData | ||
) |
void Translator::SetTarget | ( | DataReceiver * | pcTarget | ) |
References os::Translator::Internal::m_pcDataTarget.