34class CCacheReader :
public IReader, CCopyImpposible
38 CCacheReader(
void) : m_pReader(NULL), m_minimum(100)
42 void SetEnvironmrent(
IReport* pRep,
size_t minimum = 100)
52 virtual LPCTSTR GetOpenName(
void)
const
54 return (m_pReader != NULL) ? m_pReport->GetOpenName() : _T(
"");
60 virtual void Close(
void)
62 if ( m_pReader != NULL )
73 virtual bool CanRead(
void)
const
75 return (m_pReader != NULL) ? m_pReport->CanRead() :
false;
83 virtual LONGLONG GetSize(
void)
const
85 return (m_pReader != NULL) ? m_pReport->GetSize() : 0;
96 virtual LONGLONG Seek(LONGLONG llOffset, ESeekMode eSeek = TOP)
const
98 return (m_pReader != NULL) ? m_pReport->Seek(llOffset, eSeek) : -1;
108 virtual size_t Read(
size_t size, LPVOID _P)
const