My Project
|
Inherits CFX_Object.
Public Member Functions | |
virtual | ~CFX_DataFilter () |
The destructor. Destroy this filter and all its chain. | |
FX_BOOL | Abort () const |
Indicate whether to abort the filter process. More... | |
FX_BOOL | AbortAll () |
Indicate whether to abort the filter process, including all dest filter. More... | |
void | FilterFinish (CFX_BinaryBuf &dest_buf) |
Indicate the input finished. For some filters, there might be some last output generated. More... | |
void | FilterIn (FX_LPCBYTE src_buf, size_t src_size, CFX_BinaryBuf &dest_buf) |
Input a data block to the filter (and its filter chain), and receive the final output. More... | |
FX_INT64 | GetSrcPos () const |
Get current position in the source stream (byte offset from the beginning of all input data). More... | |
FX_BOOL | IsEOF () const |
Detect EOF. More... | |
FX_BOOL | IsExhaustBuffer () const |
Indicate whether this filter exhausts the input buffer. More... | |
FX_BOOL | NeedNewSrc () |
Indicate whether this filter needs to input new src data. More... | |
void | ResetStatistics () |
Reset statistics. More... | |
void | SetDestFilter (CFX_DataFilter *pFilter) |
Set destination filter. Note the filter will be appended to the end of current filter chain. More... | |
Base class for data filters. A data filter takes some input data and outputs to another filter, or the final destination buffer.
|
inline |
Indicate whether to abort the filter process.
FX_BOOL CFX_DataFilter::AbortAll | ( | ) |
Indicate whether to abort the filter process, including all dest filter.
void CFX_DataFilter::FilterFinish | ( | CFX_BinaryBuf & | dest_buf | ) |
Indicate the input finished. For some filters, there might be some last output generated.
[out] | dest_buf | It receives the output data. |
void CFX_DataFilter::FilterIn | ( | FX_LPCBYTE | src_buf, |
size_t | src_size, | ||
CFX_BinaryBuf & | dest_buf | ||
) |
Input a data block to the filter (and its filter chain), and receive the final output.
[in] | src_buf | The input data block. |
[in] | src_size | The size in bytes of the input data block. |
[out] | dest_buf | It receives the output data. |
|
inline |
Get current position in the source stream (byte offset from the beginning of all input data).
|
inline |
Detect EOF.
|
inline |
Indicate whether this filter exhausts the input buffer.
FX_BOOL CFX_DataFilter::NeedNewSrc | ( | ) |
Indicate whether this filter needs to input new src data.
void CFX_DataFilter::ResetStatistics | ( | ) |
Reset statistics.
void CFX_DataFilter::SetDestFilter | ( | CFX_DataFilter * | pFilter | ) |
Set destination filter. Note the filter will be appended to the end of current filter chain.
[in] | pFilter | The input data filter. |