AP_Utility.h File Reference

#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/signal.h>
#include <time.h>
#include <unistd.h>
#include "AP_ThreadSemaphore.h"
#include "AP_String.h"
#include "AP_Regex.h"
#include "AP_Types.h"


Namespaces

namespace  AP
 Architecture Platform.

Defines

#define AP_Max(a, b)   (a>b)?a:b
#define AP_Min(a, b)   (a<b)?a:b
#define foreach(type, variable, group)   for(type::iterator variable = group.begin(); variable != group.end(); variable++)
#define foreach_const(type, variable, group)   for(type::const_iterator variable = group.begin(); variable != group.end(); variable++)

Functions

timespec addmsec (const timespec abs_time, const AP_Uint32 msec)
AP_Sint32 AP_Exec (const AP_String &cmd)
AP_Sint32 AP_Exec (const AP_Array &args)
AP_Sint32 AP_ReadyForRead (const AP_Sint32 socket, const AP_Uint32 timeout)
 0 - Ready -1 - Timeout -2 - Error
AP_Sint32 AP_ReadyForWrite (const AP_Sint32 socket, const AP_Uint32 timeout)
 0 - Ready -1 - Timeout -2 - Error
AP_Uint32 gettid (void)
AP_Bool IsBinNumeric (const AP_String &number)
AP_Bool IsHexNumeric (const AP_String &number)
AP_Bool IsNumeric (const AP_String &number)
void msleep (const AP_Uint32 delay)
unsigned long now_msec (void)
AP_Float64 now_std (void)
unsigned long now_usec (void)
AP_Bool Stat (const AP_String &path)
AP_Uint32 uniqueId (const AP_Pointer pointer)

Define Documentation

#define AP_Max ( a,
 )     (a>b)?a:b

#define AP_Min ( a,
 )     (a<b)?a:b

#define foreach ( type,
variable,
group   )     for(type::iterator variable = group.begin(); variable != group.end(); variable++)

#define foreach_const ( type,
variable,
group   )     for(type::const_iterator variable = group.begin(); variable != group.end(); variable++)


Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8