|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Namespace for functions getting the versions of the different libraries used by the application. More...
Typedefs | |
| using | StringString = std::pair< std::string, std::string > |
| A pair of strings. More... | |
Constants | |
| constexpr auto | asioMajor {100000} |
| Divisor to retrieve the major version of the Asio library. More... | |
| constexpr auto | asioMinor {100} |
| Divisor to retrieve the minor version of the Asio library. More... | |
| constexpr auto | asioModMinor {1000} |
| Mod divisor to retrieve the minor version of the Asio library. More... | |
| constexpr auto | asioPatch {100} |
| Mod divisor to retrieve the patch version of the Asio library. More... | |
| constexpr auto | boostMajor {100000} |
| Divisor to retrieve the major version of the Boost library. More... | |
| constexpr auto | boostMinor {1000} |
| Divisor to retrieve the minor version of the Boost library. More... | |
| constexpr auto | boostPatch {100} |
| Mod divisor to retrieve the patch level of the Boost library. More... | |
| constexpr auto | pugixmlMajor {100} |
| Divisor to retrieve the major version of the pugixml library. More... | |
| constexpr auto | pugixmlMinor {10} |
| Divisor to retrieve the minor version of the pugixml library. More... | |
| constexpr std::array | tomotoVersionFile |
| The path from where to read the version of the tomoto library from. More... | |
| constexpr auto | tomotoVersionBegin {"__version__ = '"sv} |
| The beginning of the line containing the version of the tomoto library. More... | |
| constexpr auto | tomotoVersionEnd {"'"sv} |
| The end of the line containing the version of the tomoto library. More... | |
| constexpr std::string_view | utf8CppVersion {"2.1"} |
The version of the UTF8-CPP library. More... | |
Getters | |
| std::vector< StringString > | getLibraryVersions () |
| Gets the versions of the used libraries. More... | |
| std::string | getLibraryVersionsStr (const std::string &indent) |
| Gets the versions of the used libraries as one indented string. More... | |
| std::string | getTomotoVersion () |
Gets the version of the tomoto library if available. More... | |
Namespace for functions getting the versions of the different libraries used by the application.
| using crawlservpp::Helper::Versions::StringString = typedef std::pair<std::string, std::string> |
A pair of strings.
|
inline |
Gets the versions of the used libraries.
[name, version] pairs. References asioMajor, asioMinor, asioModMinor, asioPatch, boostMajor, boostMinor, boostPatch, getTomotoVersion(), pugixmlMajor, pugixmlMinor, and utf8CppVersion.
Referenced by getLibraryVersionsStr(), and crawlservpp::Main::Database::update().
|
inline |
Gets the versions of the used libraries as one indented string.
| indent | Constant reference to a string containing the indent to be added in front of each line. |
References getLibraryVersions().
Referenced by crawlservpp::Main::App::run().
|
inline |
Gets the version of the tomoto library if available.
tomoto library as string, or <unknown> if not available. References crawlservpp::Helper::FileSystem::getPathSeparator(), tomotoVersionBegin, tomotoVersionEnd, and tomotoVersionFile.
Referenced by getLibraryVersions(), crawlservpp::Data::TopicModel::getModelInfo(), and crawlservpp::Data::TopicModel::startTraining().
|
inline |
Divisor to retrieve the major version of the Asio library.
Referenced by getLibraryVersions().
|
inline |
Divisor to retrieve the minor version of the Asio library.
Referenced by getLibraryVersions().
|
inline |
Mod divisor to retrieve the minor version of the Asio library.
Referenced by getLibraryVersions().
|
inline |
Mod divisor to retrieve the patch version of the Asio library.
Referenced by getLibraryVersions().
|
inline |
Divisor to retrieve the major version of the Boost library.
Referenced by getLibraryVersions().
|
inline |
Divisor to retrieve the minor version of the Boost library.
Referenced by getLibraryVersions().
|
inline |
Mod divisor to retrieve the patch level of the Boost library.
Referenced by getLibraryVersions().
|
inline |
Divisor to retrieve the major version of the pugixml library.
Referenced by getLibraryVersions().
|
inline |
Divisor to retrieve the minor version of the pugixml library.
Referenced by getLibraryVersions().
|
inline |
The beginning of the line containing the version of the tomoto library.
Referenced by getTomotoVersion().
|
inline |
The end of the line containing the version of the tomoto library.
Referenced by getTomotoVersion().
|
inline |
The path from where to read the version of the tomoto library from.
Referenced by getTomotoVersion().
|
inline |
The version of the UTF8-CPP library.
Referenced by getLibraryVersions().