TreeFrogFramework: Tf Namespace Reference
Functions | |
| T_CORE_EXPORT void | setupAppLoggers (TLogger *logger=nullptr) |
| T_CORE_EXPORT void | releaseAppLoggers () |
| T_CORE_EXPORT void | logging (int priority, const QByteArray &msg) |
| T_CORE_EXPORT TWebApplication * | app () noexcept |
| T_CORE_EXPORT TAppSettings * | appSettings () noexcept |
| T_CORE_EXPORT const QVariantMap & | conf (const QString &configName) noexcept |
| T_CORE_EXPORT void | msleep (int64_t msecs) noexcept |
| T_CORE_EXPORT int64_t | getMSecsSinceEpoch () |
| T_CORE_EXPORT uint32_t | rand32_r () noexcept |
| T_CORE_EXPORT uint64_t | rand64_r () noexcept |
| T_CORE_EXPORT uint64_t | random (uint64_t min, uint64_t max) noexcept |
| T_CORE_EXPORT uint64_t | random (uint64_t max) noexcept |
| T_CORE_EXPORT TCache * | cache () noexcept |
| T_CORE_EXPORT TAbstractController * | currentController () |
| const TAbstractController * | constCurrentController () |
| T_CORE_EXPORT TDatabaseContext * | currentDatabaseContext () |
| T_CORE_EXPORT QSqlDatabase & | currentSqlDatabase (int id) noexcept |
| T_CORE_EXPORT QMap< QByteArray, std::function< QObject *()> > * | objectFactories () noexcept |
| T_CORE_EXPORT QByteArray | lz4Compress (const char *data, int nbytes, int compressionLevel=1) noexcept |
| T_CORE_EXPORT QByteArray | lz4Compress (const QByteArray &data, int compressionLevel=1) noexcept |
| T_CORE_EXPORT QByteArray | lz4Uncompress (const char *data, int nbytes) noexcept |
| T_CORE_EXPORT QByteArray | lz4Uncompress (const QByteArray &data) noexcept |
| bool | strcmp (const QByteArray &str1, const QByteArray &str2) |
| template<typename... Args> | |
| void | fatal (const std::format_string< Args... > &fmt, Args &&... args) |
| template<typename... Args> | |
| void | error (const std::format_string< Args... > &fmt, Args &&... args) |
| template<typename... Args> | |
| void | warn (const std::format_string< Args... > &fmt, Args &&... args) |
| template<typename... Args> | |
| void | info (const std::format_string< Args... > &fmt, Args &&... args) |
| template<typename... Args> | |
| void | debug (const std::format_string< Args... > &fmt, Args &&... args) |
| template<typename... Args> | |
| void | trace (const std::format_string< Args... > &fmt, Args &&... args) |
| T_CORE_EXPORT void | setAppLogLayout (const QByteArray &layout) |
| T_CORE_EXPORT void | setAppLogDateTimeFormat (const QByteArray &format) |
| T_CORE_EXPORT void | setupSystemLogger (TSystemLogger *logger=nullptr) |
| T_CORE_EXPORT void | releaseSystemLogger () |
| T_CORE_EXPORT void | tSystemMessage (int priority, const QByteArray &message) |
| T_CORE_EXPORT void | setupAccessLogger () |
| T_CORE_EXPORT void | releaseAccessLogger () |
| T_CORE_EXPORT bool | isAccessLoggerAvailable () |
| T_CORE_EXPORT void | setupQueryLogger () |
| T_CORE_EXPORT void | releaseQueryLogger () |
| T_CORE_EXPORT void | writeAccessLog (const TAccessLog &log) |
| T_CORE_EXPORT void | writeQueryLog (const QString &query, bool success, const QSqlError &error, int duration) |
| T_CORE_EXPORT void | traceQuery (int duration, const QByteArray &msg) |
| template<typename... Args> | |
| void | traceQueryLog (int duration, const std::format_string< Args... > &fmt, Args &&... args) |
| T_CORE_EXPORT QMap< QString, QVariant > | settingsToMap (QSettings &settings, const QString &env=QString()) |
Variables | |
| constexpr auto | KeepEmptyParts = Qt::KeepEmptyParts |
| constexpr auto | SkipEmptyParts = Qt::SkipEmptyParts |
| constexpr auto | ReadOnly = QIODeviceBase::ReadOnly |
| constexpr auto | WriteOnly = QIODeviceBase::WriteOnly |
| constexpr auto | CR = "\x0d" |
| constexpr auto | LF = "\x0a" |
| constexpr auto | CRLF = "\x0d\x0a" |
| constexpr auto | CRLFCRLF = "\x0d\x0a\x0d\x0a" |
The Tf namespace contains miscellaneous identifiers used throughout the library of TreeFrog Framework.
◆ AjaxEvent
◆ AjaxOption
| Enumerator | |
|---|---|
| Asynchronous | |
| ContentType | |
| Encoding | |
| Method | |
| Parameters | |
| PostBody | |
| RequestHeaders | |
| EvalJS | |
| EvalJSON | |
| SanitizeJSON | |
◆ AppAttribute
◆ CaseSensitivity
◆ CloseCode
◆ EscapeFlag
◆ HttpMethod
◆ HttpStatusCode
◆ KvsEngine
◆ LogPriority
◆ QuotedStrSplitBehavior
◆ SocketState
◆ SortOrder
◆ SystemOpCode
| Enumerator | |
|---|---|
| InvalidOpCode | |
| WebSocketSendText | |
| WebSocketSendBinary | |
| WebSocketPublishText | |
| WebSocketPublishBinary | |
| MaxOpCode | |
◆ ValidationRule
| Enumerator | |
|---|---|
| Required | |
| MaxLength | |
| MinLength | |
| IntMax | |
| IntMin | |
| DoubleMax | |
| DoubleMin | |
| EmailAddress | |
| Url | |
| Date | |
| Time | |
| DateTime | |
| Pattern | |
| Custom | |
| RuleCount | |
◆ app()
Returns a global pointer referring to the unique application object.
◆ appSettings()
|
noexcept |
Returns a global pointer referring to the unique application settings object.
◆ cache()
|
noexcept |
◆ conf()
|
noexcept |
Returns the map associated with config file configName in 'conf' directory.
◆ constCurrentController()
◆ currentController()
◆ currentDatabaseContext()
◆ currentSqlDatabase()
|
noexcept |
◆ debug()
template<typename... Args>
| void Tf::debug | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ error()
template<typename... Args>
| void Tf::error | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ fatal()
template<typename... Args>
| void Tf::fatal | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ getMSecsSinceEpoch()
| int64_t Tf::getMSecsSinceEpoch | ( | ) |
◆ info()
template<typename... Args>
| void Tf::info | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ isAccessLoggerAvailable()
| bool Tf::isAccessLoggerAvailable | ( | ) |
◆ logging()
| void Tf::logging | ( | int | priority, |
| const QByteArray & | msg | ||
| ) |
◆ lz4Compress() [1/2]
|
noexcept |
◆ lz4Compress() [2/2]
|
noexcept |
◆ lz4Uncompress() [1/2]
|
noexcept |
◆ lz4Uncompress() [2/2]
|
noexcept |
◆ msleep()
|
noexcept |
Causes the current thread to sleep for msecs milliseconds.
◆ objectFactories()
|
noexcept |
◆ rand32_r()
|
noexcept |
◆ rand64_r()
|
noexcept |
◆ random() [1/2]
|
noexcept |
Random number generator in the range from 0 to max.
◆ random() [2/2]
|
noexcept |
Random number generator in the range from min to max.
◆ releaseAccessLogger()
| void Tf::releaseAccessLogger | ( | ) |
◆ releaseAppLoggers()
| void Tf::releaseAppLoggers | ( | ) |
Releases all the loggers.
This function is for internal use only.
◆ releaseQueryLogger()
| void Tf::releaseQueryLogger | ( | ) |
◆ releaseSystemLogger()
| void Tf::releaseSystemLogger | ( | ) |
◆ setAppLogDateTimeFormat()
| void Tf::setAppLogDateTimeFormat | ( | const QByteArray & | format | ) |
◆ setAppLogLayout()
| void Tf::setAppLogLayout | ( | const QByteArray & | layout | ) |
◆ settingsToMap()
| QMap< QString, QVariant > Tf::settingsToMap | ( | QSettings & | settings, |
| const QString & | env = QString() |
||
| ) |
◆ setupAccessLogger()
| void Tf::setupAccessLogger | ( | ) |
◆ setupAppLoggers()
| void Tf::setupAppLoggers | ( | TLogger * | logger = nullptr | ) |
Sets up all the loggers set in the logger.ini.
This function is for internal use only.
◆ setupQueryLogger()
| void Tf::setupQueryLogger | ( | ) |
◆ setupSystemLogger()
| void Tf::setupSystemLogger | ( | TSystemLogger * | logger = nullptr | ) |
◆ strcmp()
|
inline |
◆ trace()
template<typename... Args>
| void Tf::trace | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ traceQuery()
| void Tf::traceQuery | ( | int | duration, |
| const QByteArray & | msg | ||
| ) |
◆ traceQueryLog()
template<typename... Args>
| void Tf::traceQueryLog | ( | int | duration, |
| const std::format_string< Args... > & | fmt, | ||
| Args &&... | args | ||
| ) |
◆ tSystemMessage()
| void Tf::tSystemMessage | ( | int | priority, |
| const QByteArray & | message | ||
| ) |
◆ warn()
template<typename... Args>
| void Tf::warn | ( | const std::format_string< Args... > & | fmt, |
| Args &&... | args | ||
| ) |
◆ writeAccessLog()
| void Tf::writeAccessLog | ( | const TAccessLog & | log | ) |
◆ writeQueryLog()
| void Tf::writeQueryLog | ( | const QString & | query, |
| bool | success, | ||
| const QSqlError & | error, | ||
| int | duration | ||
| ) |
◆ CR
|
constexpr auto Tf::CR = "\x0d" |
constexpr |
◆ CRLF
|
constexpr auto Tf::CRLF = "\x0d\x0a" |
constexpr |
◆ CRLFCRLF
|
constexpr auto Tf::CRLFCRLF = "\x0d\x0a\x0d\x0a" |
constexpr |
◆ KeepEmptyParts
|
constexpr auto Tf::KeepEmptyParts = Qt::KeepEmptyParts |
constexpr |
◆ LF
|
constexpr auto Tf::LF = "\x0a" |
constexpr |
◆ ReadOnly
|
constexpr auto Tf::ReadOnly = QIODeviceBase::ReadOnly |
constexpr |
◆ SkipEmptyParts
|
constexpr auto Tf::SkipEmptyParts = Qt::SkipEmptyParts |
constexpr |
◆ WriteOnly
|
constexpr auto Tf::WriteOnly = QIODeviceBase::WriteOnly |
constexpr |