Library of Assembled Shared Sources
Process

Detailed Description

module concerning process settings

Typedefs

typedef util::Dictionary< std::string, ProcessPrioritylass::util::TProcessPriorityDictionary
 type of dictionary that can translate strings to ProcessPriority values.
 

Enumerations

enum  lass::util::ProcessPriority
 different process priority levels
 

Functions

TProcessPriorityDictionarylass::util::processPriorityDictionary ()
 singleton with dictionary that can translate strings to ProcessPriority.
 
LASS_DLL void LASS_CALL lass::util::setProcessPriority (ProcessPriority iPriority)
 set process priority by ProcessPriority value
 
void lass::util::setProcessPriority (const std::string &iPriority)
 set process priority by string
 

Typedef Documentation

◆ TProcessPriorityDictionary

type of dictionary that can translate strings to ProcessPriority values.

Its keys are strings, its values are ProcessPriority values.

Definition at line 78 of file process.h.

Function Documentation

◆ processPriorityDictionary()

TProcessPriorityDictionary & lass::util::processPriorityDictionary ( )
inline

singleton with dictionary that can translate strings to ProcessPriority.

Valid keys are "low", "belownormal", "normal", "abovenormal" and "high".

ProcessPriority
different process priority levels
Definition process.h:65
TProcessPriorityDictionary & processPriorityDictionary()
singleton with dictionary that can translate strings to ProcessPriority.
Definition process.h:87

Definition at line 87 of file process.h.

References lass::util::Singleton< T, destructPriority >::instance().

Referenced by setProcessPriority().

◆ setProcessPriority() [1/2]

LASS_DLL void LASS_CALL lass::util::setProcessPriority ( ProcessPriority iPriority)

set process priority by ProcessPriority value

Parameters
iPriorityOne of the values of ProcessPriority except numberOfProcessPriorities!
Exceptions
ExceptionAn exception is thrown if setting the process priority fails.

References LASS_DLL.

◆ setProcessPriority() [2/2]

LASS_DLL void LASS_CALL lass::util::setProcessPriority ( const std::string & iPriority)

set process priority by string

Parameters
iPriorityThe key string which is looked up in processPriorityDictionary(). The return is used to set the process priority.
See TProcessPriorityDictionary for valid keys.
Exceptions
ExceptionAn exception is thrown if iPriority is an invalid key or setting the process priority fails.

Definition at line 120 of file process.cpp.

References processPriorityDictionary(), and setProcessPriority().

Referenced by setProcessPriority().