library of assembled shared sources

http://lass.cocamware.com

FileAttribute

group of functions to test file attributes More...


Functions

bool lass::io::fileDoesExist (const std::string &iFileName)
 return true if file exists
std::string lass::io::fileExtension (const std::string &iFileName)
 return the part of the file name behind the last dot.
std::string lass::io::fileWithoutExtension (const std::string &iFileName)
 return the part of the file name before the last dot.
std::string lass::io::filePath (const std::string &iFileName)
 return the part of the file name before the last (back)slash.
std::string lass::io::fileWithoutPath (const std::string &iFileName)
 return the part of the file name behind the last (back)slash.
std::string lass::io::fileJoinExtension (const std::string &iFilename, const std::string &iExtension)
std::string lass::io::fileJoinPath (const std::string &iPath, const std::string &iFilename)


Detailed Description

group of functions to test file attributes

Function Documentation

LASS_DLL bool LASS_CALL lass::io::fileDoesExist ( const std::string &  iFileName  ) 

return true if file exists

Definition at line 75 of file file_attribute.cpp.

LASS_DLL std::string LASS_CALL lass::io::fileExtension ( const std::string &  iFileName  ) 

return the part of the file name behind the last dot.

return an empty string if there's no dot. e.g. foo returns an empty string, foo.bar returns bar, foo.bar.fun returns fun.

Definition at line 94 of file file_attribute.cpp.

References lass::io::extensionSeperator.

Referenced by lass::io::Image::open(), and lass::io::Image::save().

LASS_DLL std::string LASS_CALL lass::io::fileWithoutExtension ( const std::string &  iFileName  ) 

return the part of the file name before the last dot.

return an original string if there's no dot. e.g. foo returns foo, foo.bar returns foo, foo.bar.fun returns foo.bar .

Definition at line 108 of file file_attribute.cpp.

References lass::io::extensionSeperator.

LASS_DLL std::string LASS_CALL lass::io::filePath ( const std::string &  iFileName  ) 

return the part of the file name before the last (back)slash.

return an empty string if there's no (back)slash. e.g. foo returns an empty string, foo/bar returns foo, foo/bar/fun returns foo/bar.

Definition at line 121 of file file_attribute.cpp.

References lass::io::pathAlternativeSeperator, and lass::io::pathSeperator.

LASS_DLL std::string LASS_CALL lass::io::fileWithoutPath ( const std::string &  iFileName  ) 

return the part of the file name behind the last (back)slash.

return the original string if there's no (back)slash. e.g. foo returns foo, foo/bar returns bar, foo/bar/fun returns fun .

Definition at line 136 of file file_attribute.cpp.

References lass::io::pathAlternativeSeperator, and lass::io::pathSeperator.

LASS_DLL std::string LASS_CALL lass::io::fileJoinExtension ( const std::string &  iFilename,
const std::string &  iExtension 
)

Definition at line 147 of file file_attribute.cpp.

References lass::stde::begins_with(), and lass::io::extensionSeperator.

LASS_DLL std::string LASS_CALL lass::io::fileJoinPath ( const std::string &  iPath,
const std::string &  iFilename 
)


Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo