Changed IF_IStream::close to return an RCODE so that it is compatible with IF_OStream::close. This allows the derivation of input/output stream objects with a single close method.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@351 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-04-18 18:38:27 +00:00
parent 4e4ebe3bc7
commit 20d0865556
6 changed files with 77 additions and 95 deletions

View File

@@ -89,8 +89,9 @@ public:
FLMUINT uiBytesToRead,
FLMUINT * puiBytesRead);
FINLINE void XFLMAPI close( void)
FINLINE RCODE XFLMAPI close( void)
{
return( NE_XFLM_OK);
}
private:
@@ -2836,13 +2837,15 @@ public:
FLMUINT uiBytesToRead,
FLMUINT * puiBytesRead);
FINLINE void XFLMAPI close( void)
FINLINE RCODE XFLMAPI close( void)
{
if( m_pIStream)
{
m_pIStream->Release();
m_pIStream = NULL;
}
return( NE_XFLM_OK);
}
RCODE open(
@@ -2987,13 +2990,15 @@ public:
FLMUINT uiBytesToRead,
FLMUINT * puiBytesRead);
FINLINE void XFLMAPI close( void)
FINLINE RCODE XFLMAPI close( void)
{
if( m_pEncoderStream)
{
m_pEncoderStream->Release();
m_pEncoderStream = NULL;
}
return( NE_XFLM_OK);
}
RCODE open(