Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MUtils Namespace Reference


Classes

class  MCharPtr
class  MDate
class  MDate::baddate
class  MFilePtr

Functions

bool operator< (const MDate &a, const MDate &b)
bool operator== (const MDate &a, const MDate &b)
bool operator!= (const MDate &a, const MDate &b)
std::ostream & operator<< (std::ostream &o, const MDate &m)
MDate Now ()
void Replace (std::string &str, const std::string &from, const std::string &to)
std::string ToSQL (const std::string &token)
template<class OutIt> void Split (const std::string &s, const std::string &sep, OutIt dest)
std::string Tolower (std::string str)
std::string int2string (int i)
std::string long2string (unsigned long i)
int string2int (const std::string &s)
unsigned long TimeInterval (const TIME &a, const TIME &b)
 a is older, return in msecs

std::string MyNow (int t)
 return a date string t can be: 0:Date 1:Date + Time 2:Time w/ secs 3:Time wo/ seconds

std::string GetAppFileName ()
void Back2Slash (std::string &str)
void Slash2Back (std::string &str)
std::string ExtractFilePath (const std::string &str)
std::string ExtractFileName (const std::string &str)
std::string ExtractFileNameWithoutExt (const std::string &str)
std::string ExtractFileExt (const std::string &str)
bool FileExists (const std::string &str)
unsigned __int64 FileSize (const std::string &fn)
MDate FileDate (const std::string &str)
bool RenameFile (const std::string &from, const std::string &to)
bool DeleteFile (const std::string &str)
bool IsPrefix (const std::string &prefix, const std::string &str)


Function Documentation

void Back2Slash std::string &  str  ) 
 

bool DeleteFile const std::string &  str  ) 
 

std::string ExtractFileExt const std::string &  str  ) 
 

std::string ExtractFileName const std::string &  str  ) 
 

std::string ExtractFileNameWithoutExt const std::string &  str  ) 
 

std::string ExtractFilePath const std::string &  str  ) 
 

MDate FileDate const std::string &  str  ) 
 

bool FileExists const std::string &  str  ) 
 

unsigned __int64 FileSize const std::string &  fn  ) 
 

std::string GetAppFileName  ) 
 

std::string int2string int  i  ) 
 

bool IsPrefix const std::string &  prefix,
const std::string &  str
 

std::string long2string unsigned long  i  ) 
 

std::string MyNow int  t  ) 
 

return a date string t can be: 0:Date 1:Date + Time 2:Time w/ secs 3:Time wo/ seconds

MDate Now  ) 
 

bool operator!= const MDate &  a,
const MDate &  b
 

bool operator< const MDate &  a,
const MDate &  b
 

std::ostream& operator<< std::ostream &  o,
const MDate &  m
 

bool operator== const MDate &  a,
const MDate &  b
 

bool RenameFile const std::string &  from,
const std::string &  to
 

void Replace std::string &  str,
const std::string &  from,
const std::string &  to
 

void Slash2Back std::string &  str  ) 
 

template<class OutIt>
void Split const std::string &  s,
const std::string &  sep,
OutIt  dest
 

int string2int const std::string &  s  ) 
 

unsigned long TimeInterval const TIME &  a,
const TIME &  b
 

a is older, return in msecs

std::string Tolower std::string  str  ) 
 

std::string ToSQL const std::string &  token  ) 
 




MDFS SourceForge project page and download

SourceForge.net Logo

Generated on Sat Jan 3 03:14:20 2004 for MDFS by doxygen1.3.5