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

AppUtil.cc File Reference

#include <pwd.h>
#include <grp.h>
#include <signal.h>
#include <unistd.h>
#include <sstream>
#include <sys/stat.h>
#include <sys/timeb.h>
#include <sys/time.h>
#include <ycp/y2log.h>
#include <iomanip>
#include <string>
#include "AsciiFile.h"
#include "AppUtil.h"

Defines

#define BUF_SIZE   512

Functions

string dec_string (long number)
string hex_string (long number)
bool SearchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr)
bool SearchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr, int &LineNr_ir)
void TimeMark (const char *const Text_pcv, bool PrintDiff_bi)
void CreatePath (string Path_Cv)
bool GetUid (string Name_Cv, unsigned &Uid_ir)
bool GetGid (string Name_Cv, unsigned &Gid_ir)
int GetGid (string Name_Cv)
int GetUid (string Name_Cv)
bool CheckDir (string Path_Cv)
bool CheckSymlink (string Path_Cv)
bool CheckBlockDevice (string Path_Cv)
bool CheckNormalFile (string Path_Cv)
string ExtractNthWord (int Num_iv, string Line_Cv, bool GetRest_bi)
void PutNthWord (int Num_iv, string Word_Cv, string &Line_Cr)
void RemoveLastIf (string &Text_Cr, char Char_cv)
void Delay (int Microsec_iv)
void RemoveSurrounding (char Delim_ci, string &Text_Cr)
int CompareGt (string Lhs_Cv, string Rhs_Cv)
bool RunningFromSystem ()

Define Documentation

#define BUF_SIZE   512
 


Function Documentation

bool CheckBlockDevice string  Path_Cv  ) 
 

bool CheckDir string  Path_Cv  ) 
 

bool CheckNormalFile string  Path_Cv  ) 
 

bool CheckSymlink string  Path_Cv  ) 
 

int CompareGt string  Lhs_Cv,
string  Rhs_Cv
 

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
 

int GetGid string  Name_Cv  ) 
 

bool GetGid string  Name_Cv,
unsigned &  Gid_ir
 

int GetUid string  Name_Cv  ) 
 

bool GetUid string  Name_Cv,
unsigned &  Uid_ir
 

string hex_string long  number  ) 
 

void PutNthWord int  Num_iv,
string  Word_Cv,
string &  Line_Cr
 

void RemoveLastIf string &  Text_Cr,
char  Char_cv
 

void RemoveSurrounding char  Delim_ci,
string &  Text_Cr
 

bool RunningFromSystem  ) 
 

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

bool SearchFile AsciiFile File_Cr,
string  Pat_Cv,
string &  Line_Cr
 

void TimeMark const char *const   Text_pcv,
bool  PrintDiff_bi
 


Generated on Wed Nov 12 06:35:36 2008 for yast2-storage by  doxygen 1.3.9.1