Files
TinyORM/include/orm/utils/fs.hpp
T
silverqx 92775f444c divided Orm::Utils
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
2022-01-01 14:28:42 +01:00

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