library of assembled shared sources

http://lass.cocamware.com

Process

module concerning process settings More...


Typedefs

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

Enumerations

enum  lass::util::ProcessPriority {
  lass::util::ppLow, lass::util::ppBelowNormal, lass::util::ppNormal, lass::util::ppAboveNormal,
  lass::util::ppHigh, lass::util::numberOfProcessPriorities
}
 different process priority levels More...

Functions

TProcessPriorityDictionary & lass::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


Detailed Description

module concerning process settings

Typedef Documentation

typedef util::Dictionary<std::string, ProcessPriority> lass::util::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.


Enumeration Type Documentation

different process priority levels

Enumerator:
ppLow 
ppBelowNormal 
ppNormal 
ppAboveNormal 
ppHigh 
numberOfProcessPriorities 

Definition at line 64 of file process.h.


Function Documentation

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

singleton with dictionary that can translate strings to ProcessPriority.

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

  ProcessPriority priority = processPriorityDictionary()["normal"];

Definition at line 87 of file process.h.

Referenced by lass::util::setProcessPriority().

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

set process priority by ProcessPriority value

Parameters:
iPriority One of the values of ProcessPriority except numberOfProcessPriorities!
Exceptions:
Exception An exception is thrown if setting the process priority fails.

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

set process priority by string

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

Definition at line 121 of file process.cpp.

References LASS_THROW, lass::util::ppNormal, and lass::util::processPriorityDictionary().


Generated on Mon Nov 10 14:22:06 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo