Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

AppUtil.h File Reference

#include <fstream>
#include <time.h>
#include <string>

Go to the source code of this file.

Defines

#define ARRAY_SIZE(arr)   (sizeof(arr)/sizeof(arr[0]))
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define STRING_MAXLEN   32000

Functions

bool SearchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr)
bool SearchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr, int &StartLine_ir)
void TimeMark (const char *const Text_pcv, bool PrintDiff_bi=true)
void CreatePath (string Path_Cv)
string ExtractNthWord (int Num_iv, string Line_Cv, bool GetRest_bi=false)
void RemoveLastIf (string &Text_Cr, char Char_cv)
bool RunningFromSystem ()
void Delay (int Microsec_iv)
string dec_string (long number)
string hex_string (long number)


Define Documentation

#define ARRAY_SIZE arr   )     (sizeof(arr)/sizeof(arr[0]))
 

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

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

#define STRING_MAXLEN   32000
 


Function Documentation

void CreatePath string  Path_Cv  ) 
 

string dec_string long  number  ) 
 

void Delay int  Microsec_iv  ) 
 

string ExtractNthWord int  Num_iv,
string  Line_Cv,
bool  GetRest_bi = false
 

string hex_string long  number  ) 
 

void RemoveLastIf string &  Text_Cr,
char  Char_cv
 

bool RunningFromSystem  ) 
 

bool SearchFile AsciiFile File_Cr,
string  Pat_Cv,
string &  Line_Cr,
int &  StartLine_ir
 

bool SearchFile AsciiFile File_Cr,
string  Pat_Cv,
string &  Line_Cr
 

void TimeMark const char *const  Text_pcv,
bool  PrintDiff_bi = true
 


Generated on Tue Jul 17 04:35:14 2007 for yast2-storage by doxygen 1.3.6