www.pudn.com > NEROSDK5582.ZIP > FindFile.cpp
/******************************************************************************
|* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|* PARTICULAR PURPOSE.
|*
|* Copyright 1995-2002 Ahead Software AG. All Rights Reserved.
|*-----------------------------------------------------------------------------
|* NeroSDK / NeroCmd
|*
|* PROGRAM: FindFile.cpp
|*
|* PURPOSE: Implementation of helper class for ISO tree handling
******************************************************************************/
#include "FindFile.h"
// Constructor
CFindFiles::CFindFiles (LPCSTR psPath)
{
m_lHandle = _findfirst (psPath, &m_fd);
if (-1 != m_lHandle)
{
m_bValid = true;
}
else
{
m_bValid = false;
}
}
// Destructor
CFindFiles::~CFindFiles ()
{
if (m_lHandle != -1)
{
_findclose (m_lHandle);
}
}