GlLppOsInterface Class Reference

LPP OS interface. More...

#include <gllpp.h>

List of all members.

Public Member Functions

virtual void * MemAlloc (size_t size)=0
 Allocate memory buffer.
virtual void MemFree (void *p)=0
 Deallocate memory buffer.
virtual void Log (int sev, const char *fmt, OSVALIST argptr)=0
 Log message.
virtual void ExceptionAssert (const char *file, int line, const char *msg)=0
 Exception Assert.
virtual unsigned long GetMsTime (void) const =0
 Get Time.
virtual bool Arm (unsigned long msec)=0
 Arm timer.
virtual void Disarm (void)=0
 Disarm timer.

Detailed Description

LPP OS interface.


Member Function Documentation

virtual bool GlLppOsInterface::Arm ( unsigned long  msec) [pure virtual]

Arm timer.

Parameters:
msec- timer value in milliseconds
Return values:
true- if timer was armed
false- otherwise
virtual void GlLppOsInterface::ExceptionAssert ( const char *  file,
int  line,
const char *  msg 
) [pure virtual]

Exception Assert.

Parameters:
file- name of the file.
line- line number.
msg- message.
virtual unsigned long GlLppOsInterface::GetMsTime ( void  ) const [pure virtual]

Get Time.

Returns:
monotonically increasing value scaled to milliseconds that may roll over (2^32 -> 0).
virtual void GlLppOsInterface::Log ( int  sev,
const char *  fmt,
OSVALIST  argptr 
) [pure virtual]

Log message.

Parameters:
sev- log level
fmt- printf format
argptr- variables for printf formating
virtual void* GlLppOsInterface::MemAlloc ( size_t  size) [pure virtual]

Allocate memory buffer.

Parameters:
size- size of required memory
Returns:
pointer to allocated buffer
Note:
Returned pointer must be properly aligned.
virtual void GlLppOsInterface::MemFree ( void *  p) [pure virtual]

Deallocate memory buffer.

Parameters:
p- pointer to previously allocated buffer

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines