OpenJAUS SAE SDK  6.0.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends | List of all members
openjaus::system::Application Class Reference

#include <Application.h>

Public Member Functions

bool suppressExceptionFile ()
 Operation supressExceptionFile. More...
 
virtual std::string toString () const
 

Static Public Member Functions

static JsonConfigurationsettings ()
 
static UserConfigurationuserSettings ()
 
static int processId ()
 Operation processId. More...
 
static std::string getName ()
 Operation getName. More...
 
static std::string getArg (int number)
 Operation getArg. More...
 
static std::string getArg (std::string argKey)
 Operation getArg. More...
 
static bool isLogSpaceOn (std::string nameSpace)
 Operation isLogSpaceOn. More...
 
static Applicationinstance ()
 
static bool setTerminalMode ()
 Operation setTerminalMode. More...
 
static unsigned char getChar ()
 Operation getChar. More...
 
static bool isBackground ()
 Operation isBackground. More...
 
static unsigned char getChar (int timeout_msec)
 Operation getChar. More...
 
static void setArg (std::string argKey, std::string argValue)
 
static void checkFirewall ()
 
template<class Type >
static Type setting (const std::string &key, Type defaultValue)
 
template<class Type >
static Type userSetting (const std::string &key, Type defaultValue)
 

Static Public Attributes

static const char ASCII_ESC = 27
 

Protected Attributes

struct termios termio
 
bool terminalModified
 
openjaus::system::Mutex settingsMutex
 
std::map< std::string, std::string > argMap
 
bool conf_suppressExceptionFile
 

Private Member Functions

 Application ()
 
virtual ~Application ()
 
void setSuppressExceptionFile (bool value)
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Application &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Application *object)
 

Constructor & Destructor Documentation

◆ Application()

openjaus::system::Application::Application ( )
private

◆ ~Application()

openjaus::system::Application::~Application ( )
privatevirtual

Member Function Documentation

◆ checkFirewall()

void openjaus::system::Application::checkFirewall ( )
static

◆ getArg() [1/2]

std::string openjaus::system::Application::getArg ( int  number)
static
Parameters
number

◆ getArg() [2/2]

std::string openjaus::system::Application::getArg ( std::string  argKey)
static
Parameters
argKey

◆ getChar() [1/2]

unsigned char openjaus::system::Application::getChar ( )
static

◆ getChar() [2/2]

unsigned char openjaus::system::Application::getChar ( int  timeout_msec)
static
Parameters
timeout_msec

◆ getName()

std::string openjaus::system::Application::getName ( )
static

◆ instance()

Application & openjaus::system::Application::instance ( )
static

◆ isBackground()

bool openjaus::system::Application::isBackground ( )
static

◆ isLogSpaceOn()

bool openjaus::system::Application::isLogSpaceOn ( std::string  nameSpace)
static
Parameters
nameSpace

◆ processId()

int openjaus::system::Application::processId ( )
static

◆ setArg()

void openjaus::system::Application::setArg ( std::string  argKey,
std::string  argValue 
)
static

◆ setSuppressExceptionFile()

void openjaus::system::Application::setSuppressExceptionFile ( bool  value)
private

◆ setTerminalMode()

bool openjaus::system::Application::setTerminalMode ( )
static

◆ setting()

template<class Type >
static Type openjaus::system::Application::setting ( const std::string &  key,
Type  defaultValue 
)
inlinestatic

◆ settings()

JsonConfiguration & openjaus::system::Application::settings ( )
static

◆ suppressExceptionFile()

bool openjaus::system::Application::suppressExceptionFile ( )

◆ toString()

std::string openjaus::system::Application::toString ( ) const
virtual

◆ userSetting()

template<class Type >
static Type openjaus::system::Application::userSetting ( const std::string &  key,
Type  defaultValue 
)
inlinestatic

◆ userSettings()

UserConfiguration & openjaus::system::Application::userSettings ( )
static

Friends And Related Function Documentation

◆ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Application object 
)
friend

◆ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Application object 
)
friend

Member Data Documentation

◆ argMap

std::map<std::string, std::string> openjaus::system::Application::argMap
protected

◆ ASCII_ESC

const char openjaus::system::Application::ASCII_ESC = 27
static

◆ conf_suppressExceptionFile

bool openjaus::system::Application::conf_suppressExceptionFile
protected

◆ settingsMutex

openjaus::system::Mutex openjaus::system::Application::settingsMutex
protected

◆ terminalModified

bool openjaus::system::Application::terminalModified
protected

◆ termio

struct termios openjaus::system::Application::termio
protected

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