crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Helper::Portability Namespace Reference

Namespace for global portability functions. More...

Functions

char getch ()
 Gets a character from the user via the terminal. More...
 
std::vector< std::string > enumLocales ()
 Enumerates all available locale on the system. More...
 

Variables

static struct termios oldT
 
static struct termios newT
 

Detailed Description

Namespace for global portability functions.

Function Documentation

◆ enumLocales()

std::vector<std::string> crawlservpp::Helper::Portability::enumLocales ( )
inline

Enumerates all available locale on the system.

Returns
A vector of strings containing all available locale on the current system.

References crawlservpp::Helper::System::exec(), and crawlservpp::Helper::Strings::split().

Referenced by crawlservpp::Main::Database::update().

◆ getch()

char crawlservpp::Helper::Portability::getch ( )
inline

Gets a character from the user via the terminal.

Returns
The character read from the user input.

References newT, and oldT.

Referenced by crawlservpp::Main::App::run().

Variable Documentation

◆ newT

struct termios crawlservpp::Helper::Portability::newT
static

Referenced by getch().

◆ oldT

struct termios crawlservpp::Helper::Portability::oldT
static

Referenced by getch().