49#ifndef LASS_GUARDIAN_OF_INCLUSION_IO_FILE_ATTRIBUTE_H
50#define LASS_GUARDIAN_OF_INCLUSION_IO_FILE_ATTRIBUTE_H
60#if LASS_PLATFORM_TYPE == LASS_PLATFORM_TYPE_WIN32
61const char pathSeperator =
'\\';
62const char pathAlternativeSeperator =
'/';
63const char extensionSeperator =
'.';
65const char pathSeperator =
'/';
66const char pathAlternativeSeperator =
'\0';
67const char extensionSeperator =
'.';
75LASS_DLL std::string LASS_CALL fileJoinExtension(
const std::string& iFilename,
const std::string& iExtension);
76LASS_DLL std::string LASS_CALL fileJoinPath(
const std::string& iPath,
const std::string& iFilename);
78#if LASS_HAVE_WCHAR_SUPPORT
80#if LASS_PLATFORM_TYPE == LASS_PLATFORM_TYPE_WIN32
81const wchar_t wpathSeperator = L
'\\';
82const wchar_t wpathAlternativeSeperator = L
'/';
83const wchar_t wextensionSeperator = L
'.';
85const wchar_t wpathSeperator = L
'/';
86const wchar_t wpathAlternativeSeperator = L
'\0';
87const wchar_t wextensionSeperator = L
'.';
95LASS_DLL std::wstring LASS_CALL fileJoinExtension(
const std::wstring& iFilename,
const std::wstring& iExtension);
96LASS_DLL std::wstring LASS_CALL fileJoinPath(
const std::wstring& iPath,
const std::wstring& iFilename);
bool fileDoesExist(const std::string &fileName)
return true if file exists
std::string fileWithoutPath(const std::string &fileName)
return the part of the file name behind the last (back)slash.
std::string filePath(const std::string &fileName)
return the part of the file name before the last (back)slash.
std::string fileExtension(const std::string &fileName)
return the part of the file name behind the last dot.
std::string fileWithoutExtension(const std::string &fileName)
return the part of the file name before the last dot.
#define LASS_DLL
DLL interface: import or export symbols?
streams, binary streams, vrmlstreams, ...
Library for Assembled Shared Sources.