Trippin Cyril
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Static Public Member Functions | List of all members
trippingcyril::TermUtils Class Reference

Helper class to pretty print stuff to the terminal in a fairly standard way. More...

#include <TermUtils.h>

Classes

class  StatusPrinter
 Pretty print loading statuses. More...
 

Static Public Member Functions

static void PrintStatus (bool status, const String &msg)
 
static void PrintError (const String &msg)
 
static bool WritePidFile (const String &path)
 
static void PrintMotd ()
 
static int GetCPUCount ()
 

Detailed Description

Helper class to pretty print stuff to the terminal in a fairly standard way.

Member Function Documentation

static int trippingcyril::TermUtils::GetCPUCount ( )
static
Returns
The amount of online processors the system has, useful to determine your amount of threads
static void trippingcyril::TermUtils::PrintError ( const String msg)
static

Pretty print an error message

static void trippingcyril::TermUtils::PrintMotd ( )
static

Print a fancy Tripping Cyril message of the day

static void trippingcyril::TermUtils::PrintStatus ( bool  status,
const String msg 
)
static

Pretty prints the status of a boolean and a message

static bool trippingcyril::TermUtils::WritePidFile ( const String path)
static

Write the pid to path


The documentation for this class was generated from the following file: