MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Classes | Typedefs | Enumerations | Functions | Variables
mds::sys Namespace Reference

Classes

class  CAtomic
 An atomic increment and decrement operation. More...
class  CCondition
 Class encapsulating system Condition. More...
class  CCriticalSection
 Class that encapsulates system critical section. More...
class  CEvent
 Class encapsulating system event. More...
class  CExitHandler
 Class implementing an exit handler functions. More...
class  CFileBrowser
 Class for walking through the file system. More...
class  CFileBrowserU
 Class for walking through the file system. More...
class  CMutex
 Class providing simple mutual exclusion (recursive version). More...
class  CNamedPipe
 Named pipe. More...
class  CSemaphore
 Named semaphore. More...
class  CSharedMem
 Class encapsulating access to the shared memory. More...
class  CStopwatch
 Class for time difference measuring. More...
class  CThread
 Encapsulation of several thread functions into a class mds::CThread. More...
class  CTimer
 Class encapsulating timer functions. More...
class  CTimestamp
 Timestamp class representing an event time and description. More...
class  CUserThread
 Thread encapsulation. More...
class  tStringConv
 Class providing functions to convert between various string encodings. More...

Typedefs

typedef CAtomic::tSmartPtr CAtomicPtr
 Smart pointer to the Atomic.
typedef CCondition::tSmartPtr CConditionPtr
 Smart pointer to the Condition.
typedef CCriticalSection::tSmartPtr CCriticalSectionPtr
 Smart pointer to the critical section.
typedef CEvent::tSmartPtr CEventPtr
 Smart pointer to the event.
typedef CExitHandler::tSmartPtr CExitHandlerPtr
 Smart pointer to the exit handler.
typedef CFileBrowser::tSmartPtr CFileBrowserPtr
 Smart pointer to the file browser.
typedef CFileBrowserU::tSmartPtr CFileBrowserUPtr
 Smart pointer to the file browser.
typedef CMutex::tSmartPtr CMutexPtr
 Smart pointer to the mutex.
typedef CNamedPipe::tSmartPtr CNamedPipePtr
 Smart pointer to a named pipe.
typedef CSemaphore::tSmartPtr CSemaphorePtr
 Smart pointer to a semaphore.
typedef CSharedMem::tSmartPtr CSharedMemPtr
 Smart pointer to the shared memory.
typedef CStopwatch::tSmartPtr CStopwatchPtr
 Smart pointer to the mutex.
typedef CThread::tSmartPtr CThreadPtr
 Smart pointer to the mutex.
typedef CTimer::tSmartPtr CTimerPtr
 Smart pointer to the timer.
typedef CUserThread::tSmartPtr CUserThreadPtr
 Smart pointer to the user thread.

Enumerations

enum  EPipeState { P_DISCONNECTED = 1 << 0, P_CONNECTED = 1 << 1, P_BROKEN = (1 << 2) | P_DISCONNECTED, P_END = (1 << 3) | P_DISCONNECTED }
 Named pipe state. More...
enum  EPipeType { P_IN = 1 << 0, P_OUT = 1 << 1 }
 Type of the named pipe. More...

Functions

FILE * fopenU (tString filename, tString mode)
 Unicode alternative to the common fopen() function.
void sleep (unsigned uTime)
 Sleep for a time specified in miliseconds.

Variables

const int FB_MAX_DIR_LENGHT = 512 + 1
 Global constants.
const unsigned P_RESOLUTION = 100
 Wait function resolution.
static const unsigned char tableUtf8Lengths [256]
 This table gives the length of the UTF-8 encoding from its first character:
const unsigned THREAD_EXIT_TIME = 2000
 Waiting for a thread termination.
const unsigned TIMER_RESOLUTION = 1
 Minimal timer resolution.
static const unsigned int utf8_max [] = { 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff, 0xffffffff }
static const unsigned int wxUnicodePUA = 0x100000
 Boundaries of the private use area we use to (temporarily) remap characters invalid in the UTF-8 encoded strings.
static const unsigned int wxUnicodePUAEnd = wxUnicodePUA + 256

Typedef Documentation

typedef CAtomic::tSmartPtr mds::sys::CAtomicPtr

Smart pointer to the Atomic.

typedef CCondition::tSmartPtr mds::sys::CConditionPtr

Smart pointer to the Condition.

typedef CCriticalSection::tSmartPtr mds::sys::CCriticalSectionPtr

Smart pointer to the critical section.

typedef CEvent::tSmartPtr mds::sys::CEventPtr

Smart pointer to the event.

typedef CExitHandler::tSmartPtr mds::sys::CExitHandlerPtr

Smart pointer to the exit handler.

typedef CFileBrowser::tSmartPtr mds::sys::CFileBrowserPtr

Smart pointer to the file browser.

typedef CFileBrowserU::tSmartPtr mds::sys::CFileBrowserUPtr

Smart pointer to the file browser.

typedef CMutex::tSmartPtr mds::sys::CMutexPtr

Smart pointer to the mutex.

typedef CNamedPipe::tSmartPtr mds::sys::CNamedPipePtr

Smart pointer to a named pipe.

typedef CSemaphore::tSmartPtr mds::sys::CSemaphorePtr

Smart pointer to a semaphore.

typedef CSharedMem::tSmartPtr mds::sys::CSharedMemPtr

Smart pointer to the shared memory.

typedef CStopwatch::tSmartPtr mds::sys::CStopwatchPtr

Smart pointer to the mutex.

typedef CThread::tSmartPtr mds::sys::CThreadPtr

Smart pointer to the mutex.

typedef CTimer::tSmartPtr mds::sys::CTimerPtr

Smart pointer to the timer.

typedef CUserThread::tSmartPtr mds::sys::CUserThreadPtr

Smart pointer to the user thread.


Enumeration Type Documentation

Named pipe state.

Enumerator:
P_DISCONNECTED 

Disconnected pipe.

P_CONNECTED 

Successfully connected pipe.

P_BROKEN 

Broken pipe.

P_END 

End of pipe reached.

Type of the named pipe.

Enumerator:
P_IN 

Input pipe.

P_OUT 

Output pipe.


Function Documentation

FILE* mds::sys::fopenU ( tString  filename,
tString  mode 
)

Unicode alternative to the common fopen() function.

  • The parameter filename is a Unicode string.
void mds::sys::sleep ( unsigned  uTime)

Sleep for a time specified in miliseconds.


Variable Documentation

Global constants.

Maximal directory path length

const unsigned mds::sys::P_RESOLUTION = 100

Wait function resolution.

const unsigned char mds::sys::tableUtf8Lengths[256] [static]

This table gives the length of the UTF-8 encoding from its first character:

const unsigned mds::sys::THREAD_EXIT_TIME = 2000

Waiting for a thread termination.

const unsigned mds::sys::TIMER_RESOLUTION = 1

Minimal timer resolution.

const unsigned int mds::sys::utf8_max[] = { 0x7f, 0x7ff, 0xffff, 0x1fffff, 0x3ffffff, 0x7fffffff, 0xffffffff } [static]
const unsigned int mds::sys::wxUnicodePUA = 0x100000 [static]

Boundaries of the private use area we use to (temporarily) remap characters invalid in the UTF-8 encoded strings.

const unsigned int mds::sys::wxUnicodePUAEnd = wxUnicodePUA + 256 [static]