2006-08-14 11:10:01 -05:00
|
|
|
#include "file.hxx"
|
|
|
|
|
|
|
|
namespace transex
|
|
|
|
{
|
|
|
|
|
|
|
|
File::File( const rtl::OUString sFile )
|
|
|
|
{
|
|
|
|
sFileName = sFile;
|
|
|
|
}
|
|
|
|
|
2006-08-17 08:07:26 -05:00
|
|
|
File::File( const rtl::OUString sFullPath , const rtl::OUString sFile )
|
2006-08-14 11:10:01 -05:00
|
|
|
{
|
|
|
|
sFileName = sFile;
|
|
|
|
sFullName = sFullPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool File::lessFile ( const File& rKey1, const File& rKey2 )
|
|
|
|
{
|
|
|
|
rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() );
|
|
|
|
rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() );
|
|
|
|
|
|
|
|
return sName1.compareTo( sName2 ) < 0 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|