Classes | Functions
GpCoreTools Namespace Reference

Classes

class  Address
 Brief description of class still missing. More...
class  ApplicationHelp
 Brief description of class still missing. More...
class  Average
 Brief description of class still missing. More...
class  ByteOrder
 Brief description of class still missing. More...
class  Chrono
 Brief description of class still missing. More...
class  CoreApplication
 Brief description of class still missing. More...
class  DaemonApplication
 Brief description of class still missing. More...
class  DynamicBuffer
 Brief description of class still missing. More...
class  Event
 Brief description of class still missing. More...
class  EventLoop
 Brief description of class still missing. More...
class  EventStream
 Brief description of class still missing. More...
class  File
 File manipulation tools. More...
class  FletcherChecksum
 Brief description of class still missing. More...
class  InfiniteLoop
class  Leds
 Brief description of class still missing. More...
class  LinearRegression
 Brief description of class still missing. More...
class  Log
 Brief description of class still missing. More...
class  MessageClassId
 Brief description of class still missing. More...
class  MessageClassIdHeader
 Brief description of class still missing. More...
class  MessageClassIdOnly
 Brief description of class still missing. More...
class  MessageRaw
 Brief description of class still missing. More...
class  MessageRawHeader
 Brief description of class still missing. More...
class  MovingStatistics
 Brief description of class still missing. More...
class  NewTimerEvent
 Brief description of class still missing. More...
class  PackageInfo
 Brief description of class still missing. More...
class  PThread
 Brief description of class still missing. More...
class  ScreenClient
 Brief description of class still missing. More...
class  ScreenClientConnect
class  Serial
 Brief description of class still missing. More...
class  Statistics
 Brief description of class still missing. More...
class  Stream
 Brief description of class still missing. More...
class  TcpClientStream
 Brief description of class still missing. More...
class  TcpServerStream
 Brief description of class still missing. More...
class  Timer
 Brief description of class still missing. More...
class  Trace
 Brief description of class still missing. More...
class  TraceBug
 Brief description of class still missing. More...
class  TraceInfo
 Abstract class for all types of trace information. More...
class  TraceStamp
 Storage for trace stamps. More...
class  UdpServerStream
class  UnixClientStream
 Brief description of class still missing. More...
class  UnixServerStream
 Brief description of class still missing. More...
class  Variant
 Brief description of class still missing. More...

Functions

bool compareStrings (const char *first, const char *second)
std::string htmlFilter (std::string str)
 PACKAGE_INFO (GpCoreTools, GPCORETOOLS)
void replaceString (std::string &str, const char *find, const char *replace)
template<typename T >
void unused (const T &x)

Detailed Description

GpCoreTools library


Function Documentation

bool GpCoreTools::compareStrings ( const char *  first,
const char *  second 
)

Referenced by GpCoreTools::CoreApplication::setHelp().

{
  return strcmp(first, second)<0;
}
std::string GpCoreTools::htmlFilter ( std::string  str)

References replaceString(), and str.

{
  replaceString(str, "&","&amp;");
  replaceString(str, "'","&apos;");
  replaceString(str, "\"","&quot;");
  replaceString(str, "<","&lt;");
  replaceString(str, ">","&gt;");
  replaceString(str, "\n  ","<li/>");
  replaceString(str, "\n","<br/>");
  return str;
}
GpCoreTools::PACKAGE_INFO ( GpCoreTools  ,
GPCORETOOLS   
)
void GpCoreTools::replaceString ( std::string &  str,
const char *  find,
const char *  replace 
)

Referenced by htmlFilter().

{
  size_t pos=0;
  int nFind=strlen(find);
  while(true) {
    pos=str.find(find, pos);
    if(pos==std::string::npos) return;
    str=str.replace(pos, nFind, replace);
    pos+=nFind;
  }
}
template<typename T >
void GpCoreTools::unused ( const T &  x) [inline]
{(void)x;}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines