ariba::utility::Helper Namespace Reference


Typedefs

typedef list< string > STRING_LIST
typedef STRING_LIST::iterator STRING_LIST_ITERATOR

Functions

string ultos (unsigned long val)
 unsigned long to string
template<class T>
string ptos (T pnt)
 pointer to string-address
string ltos (long val)
 long to string
string ultohexs (unsigned long val, bool hexdelimiter=true)
 unsigned long to hex string
string ltohexs (long val, bool hexdelimiter=true)
 long to hex string
long stol (string str)
 string to long
int stoi (string str)
 string to int
double stod (string str)
 string to double
unsigned int hstoui (string str)
 hex string to unsigned int
string dtos (double val)
 double to string
string trim (string str)
 trim string
STRING_LIST split (string str, string delimiter)
string replace (string str, string find, string repl)
 replace all occurences of find in the string str with repl
string getTime (time_t timeval=0)
string getDate (time_t timeval=0)
unsigned long getElapsedMillis ()
void sleep (unsigned int millis)

Variables

const string LINE_BREAK = "\n"


Typedef Documentation

split a string into substrings. The single strings trimmed from whitespace only strings that have a resulting length > 0 after the trim are in the list

Definition at line 128 of file Helper.h.

typedef STRING_LIST::iterator ariba::utility::Helper::STRING_LIST_ITERATOR

Definition at line 129 of file Helper.h.


Function Documentation

string ariba::utility::Helper::dtos ( double  val  ) 

double to string

Definition at line 262 of file Helper.cpp.

string ariba::utility::Helper::getDate ( time_t  timeval = 0  ) 

Definition at line 196 of file Helper.cpp.

unsigned long ariba::utility::Helper::getElapsedMillis (  ) 

Definition at line 249 of file Helper.cpp.

string ariba::utility::Helper::getTime ( time_t  timeval = 0  ) 

Definition at line 165 of file Helper.cpp.

unsigned int ariba::utility::Helper::hstoui ( string  str  ) 

hex string to unsigned int

Definition at line 126 of file Helper.cpp.

string ariba::utility::Helper::ltohexs ( long  val,
bool  hexdelimiter = true 
)

long to hex string

Definition at line 88 of file Helper.cpp.

string ariba::utility::Helper::ltos ( long  val  ) 

long to string

Definition at line 57 of file Helper.cpp.

template<class T>
string ariba::utility::Helper::ptos ( pnt  )  [inline]

pointer to string-address

Definition at line 89 of file Helper.h.

string ariba::utility::Helper::replace ( string  str,
string  find,
string  repl 
)

replace all occurences of find in the string str with repl

Definition at line 158 of file Helper.cpp.

void ariba::utility::Helper::sleep ( unsigned int  millis  )  [inline]

Definition at line 156 of file Helper.h.

Referenced by ariba::utility::Timer::threadFunc().

Helper::STRING_LIST ariba::utility::Helper::split ( string  str,
string  delimiter 
)

Definition at line 131 of file Helper.cpp.

References trim().

double ariba::utility::Helper::stod ( string  str  ) 

string to double

Definition at line 268 of file Helper.cpp.

int ariba::utility::Helper::stoi ( string  str  ) 

string to int

Definition at line 121 of file Helper.cpp.

References stol().

Referenced by ariba::communication::EndpointDescriptor::fromString(), and ariba::AribaModule::setProperty().

long ariba::utility::Helper::stol ( string  str  ) 

string to long

Definition at line 116 of file Helper.cpp.

Referenced by stoi().

string ariba::utility::Helper::trim ( string  str  ) 

trim string

Definition at line 106 of file Helper.cpp.

Referenced by split().

string ariba::utility::Helper::ultohexs ( unsigned long  val,
bool  hexdelimiter = true 
)

unsigned long to hex string

Definition at line 70 of file Helper.cpp.

string ariba::utility::Helper::ultos ( unsigned long  val  ) 


Variable Documentation

Definition at line 151 of file Helper.h.


Generated on Wed May 27 18:24:13 2009 for Ariba by  doxygen 1.5.6