Стандартные пути
This commit is contained in:
30
src/myx/filesystem/current_executable.hpp
Normal file
30
src/myx/filesystem/current_executable.hpp
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef MYX_FILESYSTEM_CURRENT_EXECUTABLE_HPP_
|
||||
#define MYX_FILESYSTEM_CURRENT_EXECUTABLE_HPP_
|
||||
|
||||
#include <QString>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
namespace myx {
|
||||
|
||||
namespace filesystem {
|
||||
|
||||
class CurrentExecutable
|
||||
{
|
||||
QFileInfo m_procFilePath;
|
||||
QFileInfo m_canonicalFilePath;
|
||||
QDir m_canonicalPath;
|
||||
QString m_fileName;
|
||||
|
||||
public:
|
||||
CurrentExecutable();
|
||||
QFileInfo canonicalFilePath() const;
|
||||
QDir canonicalPath() const;
|
||||
QString fileName() const;
|
||||
};
|
||||
|
||||
} // namespace filesystem
|
||||
|
||||
} // namespace myx
|
||||
|
||||
#endif // MYX_FILESYSTEM_CURRENT_EXECUTABLE_HPP_
|
Reference in New Issue
Block a user