mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-08 01:29:23 -05:00
097c2c0c22
- explicit QStringLiteral and QChar - fixed macro guard names - inline from defn. to decl. - whitespaces and comments - added Q_DISABLE_COPY() - removed friend class DB; from DM - removed schemagrammar.cpp, was empty
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#pragma once
|
|
#ifndef ORM_LIBRARYINFO_HPP
|
|
#define ORM_LIBRARYINFO_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include <QVersionNumber>
|
|
|
|
#include "orm/macros/commonnamespace.hpp"
|
|
#include "orm/macros/export.hpp"
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
namespace Orm
|
|
{
|
|
|
|
/*! Library class that provides information about TinyORM library. */
|
|
class SHAREDLIB_EXPORT LibraryInfo
|
|
{
|
|
Q_DISABLE_COPY(LibraryInfo)
|
|
|
|
public:
|
|
/*! Deleted default constructor, this is a pure library class. */
|
|
LibraryInfo() = delete;
|
|
/*! Deleted destructor. */
|
|
~LibraryInfo() = delete;
|
|
|
|
/*! Return a string describing how this version of TinyORM library was built. */
|
|
static const char *build() noexcept;
|
|
/*! Return true if this build of TinyORM was built with debugging enabled, or
|
|
false if it was built in release mode. */
|
|
static bool isDebugBuild();
|
|
|
|
/*! Return the version of the TinyORM library. */
|
|
static QVersionNumber version() noexcept Q_DECL_CONST_FUNCTION;
|
|
};
|
|
|
|
} // namespace Orm
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_LIBRARYINFO_HPP
|