mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-26 10:50:42 -05:00
92775f444c
While ORM can be disabled, Orm::Utils has been split into Orm::Utils and Orm::Tiny::Utils (Orm::Tiny::TinyUtils alias). So when ORM is disabled then utils used only in the ORM will be excluded from a final build. - bugfix cmake undefined ORM option in TinySources
39 lines
776 B
C++
39 lines
776 B
C++
#pragma once
|
|
#ifndef ORM_UTILS_FS_HPP
|
|
#define ORM_UTILS_FS_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include "orm/macros/commonnamespace.hpp"
|
|
#include "orm/macros/export.hpp"
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
namespace Orm::Utils
|
|
{
|
|
|
|
/*! Filesystem library class. */
|
|
class SHAREDLIB_EXPORT Fs
|
|
{
|
|
Q_DISABLE_COPY(Fs)
|
|
|
|
public:
|
|
/*! Deleted default constructor, this is a pure library class. */
|
|
Fs() = delete;
|
|
/*! Deleted destructor. */
|
|
~Fs() = delete;
|
|
|
|
/*! Resolve ~ home prefix to the full filepath. */
|
|
[[maybe_unused]]
|
|
static QString resolveHome(QString filepath);
|
|
};
|
|
|
|
} // namespace Orm::Utils
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_UTILS_FS_HPP
|