OpenJAUS Software Development Kit  4.3.1
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

virtual std::string toString () const
 

Static Public Member Functions

static Configurationsettings ()
 
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 SettinggetSetting (std::string key)
 
static bool isBackground ()
 Operation isBackground. More...
 
static unsigned char getChar (int timeout_msec)
 Operation getChar. More...
 
template<class Type >
static Type setting (std::string key, Type defaultValue, bool controllerWritable=false, bool globalReadable=false, bool controllerReadable=true)
 
static bool comment (std::string key, std::string comment)
 
static void setArg (std::string argKey, std::string argValue)
 
static void checkFirewall ()
 

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
 

Private Member Functions

 Application ()
 
virtual ~Application ()
 

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

§ comment()

static bool openjaus::system::Application::comment ( std::string  key,
std::string  comment 
)
inlinestatic

§ 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 ( void  )
static

§ getSetting()

Setting * openjaus::system::Application::getSetting ( std::string  key)
static
Parameters
key

§ 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

§ setTerminalMode()

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

§ setting()

template<class Type >
static Type openjaus::system::Application::setting ( std::string  key,
Type  defaultValue,
bool  controllerWritable = false,
bool  globalReadable = false,
bool  controllerReadable = true 
)
inlinestatic

§ settings()

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

§ toString()

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

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

§ 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: