ionflux.org | Impressum

Ionflux::Tools Namespace Reference

Ionflux Tools. More...


Classes

struct  AuthData
 Authentication data record. More...
class  Auth
 Auth. More...
class  AuthFile
 File based authentication. More...
class  BufferedTable
 Buffered database table. More...
class  ByteDump
 Byte dump. More...
class  CairoCanvas
 Cairo drawing canvas. More...
class  Canvas
 Drawing canvas. More...
struct  CLOption
 Command line option. More...
struct  CLAcceptableOption
 Acceptable command line option. More...
class  CLArgs
 Command line argument parser. More...
class  ClassInfo
 Class information. More...
struct  Color
 Color. More...
struct  Color8bpp
 Color (8 bits per pixel, RGBA). More...
struct  ConfigOption
 Configuration option. More...
struct  ConfigLine
 Configuration line. More...
class  Config
 Configuration. More...
class  ConfigMap
 Configuration map. More...
struct  ConfigTreeEntry
 Configuration tree entry. More...
class  ConfigTree
 Configuration tree. More...
struct  DatabaseConfig
 Database configuration. More...
struct  DatabaseError
 Database error. More...
class  DatabaseClassInfo
 Class information for class Database. More...
class  Database
 Database. More...
class  DateTime
 Date and Time. More...
struct  Mailbox
 A mailbox (see RFC 2822). More...
class  EMailAddress
 EMail address. More...
class  FDSet
 File descriptor set. More...
class  File
 File. More...
class  GlibIOEventInfo
 IO event information (Glib based). More...
class  GlibMultiplexer
 Glib based IO event multiplexer. More...
class  GtkCairoArea
 GTK+/Cairo drawing area. More...
struct  IOEvent
 IO Event. More...
class  IOHandler
 IO event handler. More...
struct  IOEventInfo
 IO event information. More...
class  IOMultiplexer
 IO event multiplexer. More...
class  ManagedObjectClassInfo
 Class information for class ManagedObject. More...
class  ManagedObject
 Base class for managed objects. More...
class  Matrix3
 Matrix (R3 x R3). More...
class  Message
 Message. More...
class  MessageDump
 Message dump. More...
class  MessageHandler
 Message event handler. More...
class  MySQLDatabaseClassInfo
 Class information for class MySQLDatabase. More...
class  MySQLDatabase
 MySQLDatabase. More...
struct  NodeInfo
 Node information. More...
class  Node
 Tree node. More...
class  NodeDump
 Node dump. More...
class  NodeReference
 Tree node reference. More...
class  ObjectClassInfo
 Class information for class Object. More...
class  Object
 Object. More...
class  ObjectPool
 Object pool. More...
class  RegExp
 Regular expression matching. More...
class  Reporter
 Reporter. More...
class  SelectMultiplexer
 Select based IO event multiplexer. More...
struct  StringFilterFunction
 A string filter function. More...
struct  StringManipulatorEntry
 Entry for a StringManipulator object. More...
class  StringFilter
 String filter. More...
class  StringManipulator
 String manipulator. More...
class  StringUppercase
 Convert a string to uppercase. More...
class  StringLowercase
 Convert a string to lowercase. More...
class  StringErase
 Erase a substring. More...
class  StringReplace
 Replace a substring with another string. More...
class  StringTrim
 Remove whitespace from boths ends of a string. More...
class  StringLTrim
 Remove whitespace from the beginning of a string. More...
class  StringRTrim
 Remove whitespace from the end of a string. More...
class  StringTruncate
 Truncate a string, appending optional dots. More...
class  StringCenter
 Center a string using specified padding. More...
class  StringMove
 Move a substring. More...
class  StringAppend
 Append to string. More...
class  StringInsert
 Insert a string. More...
class  StringNumFormat
 Format a number. More...
class  StringTranslate
 Replace characters (translate). More...
class  StringSubstr
 Extract substring (substr). More...
class  StringLPad
 Pad left (lpad). More...
class  StringRPad
 Pad right (rpad). More...
class  StringSWrap
 Soft word wrap (swrap). More...
class  StringXMLEscape
 XML escape (xmlescape). More...
class  StringURLEncode
 URL encode (urlencode). More...
class  TCPAuthClient
 Authenticated TCP client. More...
class  TCPAuthServer
 Authenticated TCP server. More...
class  TCPClient
 Generic TCP Client. More...
class  TCPMessageClient
 TCPMessageClient. More...
class  TCPMessageServer
 Message based TCP server. More...
class  TCPRemotePeer
 TCPRemotePeer. More...
class  TCPServer
 TCPServer. More...
class  TCPSocket
 TCP socket. More...
struct  TemplateVar
 Template variable. More...
struct  TemplateElement
 Template element. More...
struct  TagNestingLevel
 Template tag nesting level. More...
struct  TemplateSection
 Template section. More...
class  Template
 Template processor. More...
struct  DSTSwitchingRule
 Daylight saving time switching rule. More...
class  TimeZone
 Time zone. More...
struct  TokenType
 Token type. More...
struct  Token
 Token. More...
class  Tokenizer
 Generic byte string tokenizer. More...
class  TokenTypeMap
 Token type lookup map. More...
class  CharTypeMap
 Character type lookup map. More...
struct  DataEntry
 Data Entry. More...
struct  TreePath
 Tree path. More...
struct  TreeExprElement
 Tree expression element. More...
class  Tree
 Data tree. More...
class  TreeEval
 Tree expression evaluator. More...
class  TreeResolver
 Tree resolver. More...
struct  Utf8Token
 A token for the UTF-8 tokenizer. More...
class  Utf8TokenizerClassInfo
 Class information for class Utf8Tokenizer. More...
class  Utf8Tokenizer
 Tokenizer with UTF-8 support. More...
struct  Utf8TokenType
 A token type with UTF-8 support. More...
class  Utf8TokenTypeMapClassInfo
 Class information for class Utf8TokenTypeMap. More...
class  Utf8TokenTypeMap
 Token type map with UTF-8 support. More...
class  Vector3
 Vector (R3). More...

Namespaces

namespace  Cairo

Typedefs

typedef std::vector< std::string > CLParams
 Vector of command line parameters.
typedef std::map< const std::string,
const Color * > 
ColorMap
 Maps for color lookup by name.
typedef std::vector< std::string > DbRow
 Result row.
typedef std::map< std::string,
std::string > 
DbRowMap
 Result row as a map.
typedef std::vector< DbRowDbResult
 Set of result rows.
typedef std::vector< DbRowMapDbResultMap
 Set of result rows as maps.
typedef std::vector< std::string > DbTables
 List of tables.
typedef std::vector< std::string > DbColumns
 List of columns.
typedef int64_t TimeTicks
 UTC seconds since 0001-01-01 00:00:00.
typedef int64_t Year
 Year.
typedef std::vector< std::string > ReMatch
 Set of matched subpatterns.
typedef std::vector< ReMatchReMatchSet
 Set of several sets of matched subpatterns.
typedef std::map< std::string,
TemplateSection
TemplateSectionMap
 Map from section names to template sections.
typedef int64_t TimeTicks
 UTC seconds since 0001-01-01 00:00:00.
typedef int64_t Year
 Year.
typedef std::map< unsigned
int, Ionflux::Tools::Utf8TokenType * > 
ImplTokenTypeMap

Functions

Color8bpp to8bpp (const Color &color)
 Get 8 bpp representation.
std::string toHex (const Color &color)
 Get hexadecimal representation.
Color createColorFromHex (const std::string &hexColor)
 Create color from hexadecimal representation.
void addBasicColors (ColorMap &colorMap)
 Add basic colors.
const ColorgetByName (const std::string &colorName, ColorMap &colorMap)
 Get color by name.
Matrix3 operator * (double a, const Matrix3 &mat)
 Multiply operator.
std::string makeHex (const std::string &inputData)
 Make readable hexadecimal code.
std::string makeReadable (const std::string &inputData, const std::string &replacement)
 Replace unreadable characters.
std::string makeNiceHex (const std::string &hex, const std::string &readable, int bytesPerLine, int groupBytes)
 Make nice hexadecimal output.
std::string sha1 (const std::string &secret, bool hexOut=false)
 Calculate SHA-1 hash.
void explode (const std::string &bytes, const std::string &splitString, std::vector< std::string > &result)
 Explode a string.
void explodeQuoted (const std::string &bytes, std::vector< std::string > &result)
 Explode a string.
bool isOneOf (char c, const std::string &testChars)
 Check type of a character.
bool isNumber (const std::string &bytes)
 Check whether a string represents a number.
bool isInteger (const std::string &bytes)
 Check whether a string represents an integer.
bool isFloat (const std::string &bytes)
 Check whether a string represents a float.
bool isIdentifier (const std::string &bytes)
 Check whether a string represents an identifier.
std::string readFile (const std::string &fileName)
 Read a file.
bool writeFile (const std::string &fileName, const std::string &data, char writeMode)
 Write to file.
bool bz2Compress (const std::string &inputData, std::string &outputBuffer)
 Compress data.
bool bz2Decompress (const std::string &inputData, std::string &outputBuffer)
 Decompress data.
std::string packInt (int data)
 Pack integer.
std::string packDouble (double data)
 Pack double.
std::string packBool (bool data)
 Pack boolean.
int unpackInt (const std::string &data)
 Unpack integer.
double unpackDouble (const std::string &data)
 Unpack double.
bool unpackBool (const std::string &data)
 Unpack boolean.
void socketInit ()
 Initialize socket API.
void daemonize ()
 Daemonize.
void socketShutdown ()
 Shutdown socket API.
std::string parseHex (const std::string &inputData)
 Parse hex string.
void getPassword (const std::string &prompt, std::string &password)
 Get a password.
void getRandomBytes (std::string &bytes, unsigned int n, MTRand *source)
 Get random bytes.
void getRandomIdentifier (std::string &bytes, unsigned int n, MTRand *source)
 Get random identifier.
bool readDir (const std::string &dirName, std::vector< std::string > &target, bool prependDirName=false, bool recursive=false)
 Read directory entries.
bool getFileList (const std::vector< std::string > &pathList, std::vector< std::string > &target, bool recursive=false, const std::string &filterExpr="")
 Get file list.
std::string getCurrentDir ()
 Get current working directory.
int getOpPrecedence (const std::string &op, bool unary=false)
 Get operator precedence.
std::string escape (const std::string &source, const std::string &escapeWhat=" '\"")
 Escape string.
std::string toUpper (const std::string &text, unsigned int numChars=0, unsigned int offset=0)
 Convert string to upper case.
std::string toLower (const std::string &text, unsigned int numChars=0, unsigned int offset=0)
 Convert string to lower case.
bool toBool (const std::string &text)
 Convert string to bool.
unsigned int utf8GetSize (unsigned char byte)
 Get UTF-8 character size.
unsigned int utf8GetSize (const std::string &bytes)
 Get UTF-8 character string size.
bool utf8ToUInt (const std::string &bytes, unsigned int &target)
 Convert UTF-8 character to unsigned int.
bool utf8ToUInt (const std::string &bytes, std::vector< unsigned int > &target)
 Convert UTF-8 character string to unsigned int vector.
std::string uintToUtf8 (unsigned int uniChar)
 Convert unsigned int to UTF-8 character.
void uintToUtf8 (const std::vector< unsigned int > &uniChars, std::string &target)
 Convert unsigned int vector to UTF-8 character string.
std::string utf8Trim (const std::string &bytes, bool leftTrim=true, bool rightTrim=true)
 Trim UTF-8 string.
bool utf8IsOneOf (unsigned int c, const std::string &testChars)
 Check type of Unicode character.
bool utf8IsOneOf (unsigned int c, const std::vector< unsigned int > &testChars)
 Check type of Unicode character.
std::string utf8Escape (const std::string &source)
 Escape UTF-8 string.
std::string utf8Unescape (const std::string &source)
 Unescape ASCII string.
std::string quote (const std::string &source, const unsigned char quoteChar= '\'')
 Quote string.
std::string unquote (const std::string &source, const std::string &addQuoteChars="")
 Unquote string.
std::string trim (const std::string &bytes, bool leftTrim=true, bool rightTrim=true)
 Trim byte string.
const CharTypeMapgetCharTypes ()
 Get character type lookup map.
std::string urlEncode (const std::string &bytes)
 URL-encode bytes.
std::string urlDecode (const std::string &bytes)
 URL-decode bytes.
std::string appendDirSeparator (const std::string &path, unsigned char separator=DIR_SEPARATOR)
 Append directory separator.
std::string prependDirSeparator (const std::string &path, unsigned char separator=DIR_SEPARATOR)
 Prepend directory separator.
bool validatePath (const std::string &path, int mask=0755)
 Validate path.
std::string xmlEscape (const std::string &bytes)
 Escape XML markup.
MTRand & getRandomizer ()
 Get randomizer.
Vector3 operator * (double a, const Vector3 &vec)
 Multiply operator.
bool isAlpha (const std::string &bytes)
 Check whether a string represents an alpha.

Variables

const Color COLOR_ALICEBLUE
 Basic colors as defined by the SVG 1.1 specification.
const Color COLOR_ANTIQUEWHITE
const Color COLOR_AQUA
const Color COLOR_AQUAMARINE
const Color COLOR_AZURE
const Color COLOR_BEIGE
const Color COLOR_BISQUE
const Color COLOR_BLACK
const Color COLOR_BLANCHEDALMOND
const Color COLOR_BLUE
const Color COLOR_BLUEVIOLET
const Color COLOR_BROWN
const Color COLOR_BURLYWOOD
const Color COLOR_CADETBLUE
const Color COLOR_CHARTREUSE
const Color COLOR_CHOCOLATE
const Color COLOR_CORAL
const Color COLOR_CORNFLOWERBLUE
const Color COLOR_CORNSILK
const Color COLOR_CRIMSON
const Color COLOR_CYAN
const Color COLOR_DARKBLUE
const Color COLOR_DARKCYAN
const Color COLOR_DARKGOLDENROD
const Color COLOR_DARKGRAY
const Color COLOR_DARKGREEN
const Color COLOR_DARKGREY
const Color COLOR_DARKKHAKI
const Color COLOR_DARKMAGENTA
const Color COLOR_DARKOLIVEGREEN
const Color COLOR_DARKORANGE
const Color COLOR_DARKORCHID
const Color COLOR_DARKRED
const Color COLOR_DARKSALMON
const Color COLOR_DARKSEAGREEN
const Color COLOR_DARKSLATEBLUE
const Color COLOR_DARKSLATEGRAY
const Color COLOR_DARKSLATEGREY
const Color COLOR_DARKTURQUOISE
const Color COLOR_DARKVIOLET
const Color COLOR_DEEPPINK
const Color COLOR_DEEPSKYBLUE
const Color COLOR_DIMGRAY
const Color COLOR_DIMGREY
const Color COLOR_DODGERBLUE
const Color COLOR_FIREBRICK
const Color COLOR_FLORALWHITE
const Color COLOR_FORESTGREEN
const Color COLOR_FUCHSIA
const Color COLOR_GAINSBORO
const Color COLOR_GHOSTWHITE
const Color COLOR_GOLD
const Color COLOR_GOLDENROD
const Color COLOR_GRAY
const Color COLOR_GREY
const Color COLOR_GREEN
const Color COLOR_GREENYELLOW
const Color COLOR_HONEYDEW
const Color COLOR_HOTPINK
const Color COLOR_INDIANRED
const Color COLOR_INDIGO
const Color COLOR_IVORY
const Color COLOR_KHAKI
const Color COLOR_LAVENDER
const Color COLOR_LAVENDERBLUSH
const Color COLOR_LAWNGREEN
const Color COLOR_LEMONCHIFFON
const Color COLOR_LIGHTBLUE
const Color COLOR_LIGHTCORAL
const Color COLOR_LIGHTCYAN
const Color COLOR_LIGHTGOLDENRODYELLOW
const Color COLOR_LIGHTGRAY
const Color COLOR_LIGHTGREEN
const Color COLOR_LIGHTGREY
const Color COLOR_LIGHTPINK
const Color COLOR_LIGHTSALMON
const Color COLOR_LIGHTSEAGREEN
const Color COLOR_LIGHTSKYBLUE
const Color COLOR_LIGHTSLATEGRAY
const Color COLOR_LIGHTSLATEGREY
const Color COLOR_LIGHTSTEELBLUE
const Color COLOR_LIGHTYELLOW
const Color COLOR_LIME
const Color COLOR_LIMEGREEN
const Color COLOR_LINEN
const Color COLOR_MAGENTA
const Color COLOR_MAROON
const Color COLOR_MEDIUMAQUAMARINE
const Color COLOR_MEDIUMBLUE
const Color COLOR_MEDIUMORCHID
const Color COLOR_MEDIUMPURPLE
const Color COLOR_MEDIUMSEAGREEN
const Color COLOR_MEDIUMSLATEBLUE
const Color COLOR_MEDIUMSPRINGGREEN
const Color COLOR_MEDIUMTURQUOISE
const Color COLOR_MEDIUMVIOLETRED
const Color COLOR_MIDNIGHTBLUE
const Color COLOR_MINTCREAM
const Color COLOR_MISTYROSE
const Color COLOR_MOCCASIN
const Color COLOR_NAVAJOWHITE
const Color COLOR_NAVY
const Color COLOR_OLDLACE
const Color COLOR_OLIVE
const Color COLOR_OLIVEDRAB
const Color COLOR_ORANGE
const Color COLOR_ORANGERED
const Color COLOR_ORCHID
const Color COLOR_PALEGOLDENROD
const Color COLOR_PALEGREEN
const Color COLOR_PALETURQUOISE
const Color COLOR_PALEVIOLETRED
const Color COLOR_PAPAYAWHIP
const Color COLOR_PEACHPUFF
const Color COLOR_PERU
const Color COLOR_PINK
const Color COLOR_PLUM
const Color COLOR_POWDERBLUE
const Color COLOR_PURPLE
const Color COLOR_RED
const Color COLOR_ROSYBROWN
const Color COLOR_ROYALBLUE
const Color COLOR_SADDLEBROWN
const Color COLOR_SALMON
const Color COLOR_SANDYBROWN
const Color COLOR_SEAGREEN
const Color COLOR_SEASHELL
const Color COLOR_SIENNA
const Color COLOR_SILVER
const Color COLOR_SKYBLUE
const Color COLOR_SLATEBLUE
const Color COLOR_SLATEGRAY
const Color COLOR_SLATEGREY
const Color COLOR_SNOW
const Color COLOR_SPRINGGREEN
const Color COLOR_STEELBLUE
const Color COLOR_TAN
const Color COLOR_TEAL
const Color COLOR_THISTLE
const Color COLOR_TOMATO
const Color COLOR_TURQUOISE
const Color COLOR_VIOLET
const Color COLOR_WHEAT
const Color COLOR_WHITE
const Color COLOR_WHITESMOKE
const Color COLOR_YELLOW
const Color COLOR_YELLOWGREEN
const Color COLOR_NONE
 Basic colors defined by the Ionflux Tools.
const Color COLOR_GREY_10
const Color COLOR_GREY_20
const Color COLOR_GREY_30
const Color COLOR_GREY_40
const Color COLOR_GREY_50
const Color COLOR_GREY_60
const Color COLOR_GREY_70
const Color COLOR_GREY_80
const Color COLOR_GREY_90
const std::string MODULE_NAME = "Ionflux Tools"
 Module name.
const std::string MODULE_VERSION = "0.2.3"
 Module version.
const int READ_BUFFER_SIZE = 1024
 Default size for read buffers.
const int COMPRESS_BUFFER_SIZE = 1024
 Default size for compression (and decompression) buffers.
const int DIR_BUFFER_SIZE = 1024
 Default size for directory name buffers.
const int DIR_BUFFER_SIZE_MAX = 65536
 Maximum size for directory name buffers.
const char DIR_SEPARATOR = '/'
 Directory separator.


Detailed Description

Ionflux Tools.

Namespace for the Ionflux tools.


Typedef Documentation

typedef std::map<unsigned int, Ionflux::Tools::Utf8TokenType*> Ionflux::Tools::ImplTokenTypeMap
 


Generated on Tue Mar 14 21:07:15 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6