prip::Util Class Reference

#include <Util.h>

Inheritance diagram for prip::Util:

prip::NonCopyable List of all members.

Detailed Description

The Util class is a non-inheritable, non-copyable class that contains several unsorted useful functions.

Author:
blau

Definition at line 27 of file Util.h.

Public Member Functions

 ~Util (void)

Static Public Member Functions

static std::string base64Encode (const unsigned char *const bytesToEncode, unsigned int len)
 encodes the unsigned char array byteToEncode of length len using base64 algorithm
static std::string base64Encode (const std::string &stringToEncode)
 encodes the string stringToEncode using base64 algorithm
static std::string base64Decode (const std::string &stringToDecode)
 decodes the base64-encoded string stringToEncode
static fipImage raw2fipImage (const std::string &rawBuffer)
 converts the raw JPEG image into a fipImage
static IplImage * raw2IplImage (const std::string &rawBuffer)
 converts the raw JPEG image into an IplImage

Private Member Functions

 Util (void)


Constructor & Destructor Documentation

prip::Util::~Util ( void   )  [inline]

Definition at line 75 of file Util.h.

prip::Util::Util ( void   )  [inline, private]

Definition at line 78 of file Util.h.


Member Function Documentation

static std::string prip::Util::base64Decode ( const std::string &  stringToDecode  )  [static]

decodes the base64-encoded string stringToEncode

Parameters:
stringToDecode string that should be decoded
Returns:
decoded string

static std::string prip::Util::base64Encode ( const std::string &  stringToEncode  )  [static]

encodes the string stringToEncode using base64 algorithm

Parameters:
stringToEncode string that should be base64-encoded
Returns:
base64 encoded string

static std::string prip::Util::base64Encode ( const unsigned char *const   bytesToEncode,
unsigned int  len 
) [static]

encodes the unsigned char array byteToEncode of length len using base64 algorithm

Parameters:
bytesToEncode array that should be base64-encoded
len number of items in the array
Returns:
base64 encoded string

fipImage prip::Util::raw2fipImage ( const std::string &  rawBuffer  )  [inline, static]

converts the raw JPEG image into a fipImage

Parameters:
rawBuffer buffer containing the raw JPEG image
Returns:
FreeImagePlus (fip) representation of the image
See also:
FreeImagePlus (http://freeimage.sourceforge.net/fip/)

Definition at line 84 of file Util.h.

IplImage * prip::Util::raw2IplImage ( const std::string &  rawBuffer  )  [inline, static]

converts the raw JPEG image into an IplImage

Attention:
Do not forget to invoke cvReleaseImage to free the memory!
Parameters:
rawBuffer buffer containing the raw JPEG image
Returns:
FreeImagePlus (fip) representation of the image
See also:
OpenCV Library(http://opencvlibrary.sourceforge.net/)

Definition at line 93 of file Util.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 30 00:34:24 2006 for PRIP by  doxygen 1.4.7