packager.h File Reference

#include <iostream>
#include "chain.h"
#include "types.h"
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  libglass

Defines

#define Serializer(name, type)   bool (name)(chain &, type const &, unsigned int, void *)
#define Unserializer(name, type)

Functions

template<typename T >
bool libglass::toString (chain &c, T const &t, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::toString (chain &c, T *const &t, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::fromString (const chain &c, unsigned int offset, T &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::fromString (const chain &c, unsigned int offset, T *const &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::rawPack (chain &c, T const &t, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::rawPack (chain &c, T *const &t, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::rawUnpack (const chain &c, unsigned int offset, T &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL)
template<typename T >
bool libglass::rawUnpack (const chain &c, unsigned int offset, T *const &data, unsigned int &used, unsigned int nmemb=1, void *extra=NULL)
template<>
bool libglass::fromString< std::string > (const chain &c, unsigned int offset, std::string &data, unsigned int &used, unsigned int nmemb, void *extra)
template<>
bool libglass::rawPack< std::string > (chain &c, std::string const &t, unsigned int nmemb, void *extra)
template<>
bool libglass::rawUnpack< std::string > (const chain &c, unsigned int offset, std::string &data, unsigned int &used, unsigned int nmemb, void *extra)
template<>
bool libglass::rawPack< char * > (chain &c, char *const &t, unsigned int nmemb, void *extra)
template<>
bool libglass::rawUnpack< char * > (const chain &c, unsigned int offset, char *&data, unsigned int &used, unsigned int nmemb, void *extra)


Define Documentation

#define Serializer ( name,
type   )     bool (name)(chain &, type const &, unsigned int, void *)

Definition at line 33 of file packager.h.

#define Unserializer ( name,
type   ) 

Value:

bool (name)(const chain &, unsigned int, type &, unsigned int &, \
                unsigned int, void *)

Definition at line 35 of file packager.h.


Generated on Fri May 28 13:19:01 2010 for libGlass by  doxygen 1.5.8