compact_serializer.hpp File Reference

#include <s11n.net/s11n/io/data_node_format.hpp>
#include <s11n.net/s11n/traits.hpp>

Go to the source code of this file.

Classes

struct  s11n::io::sharing::compact_sharing_context
 Sharing context used by compact_serializer. More...
class  s11n::io::compact_serializer< NodeType >
 De/serializes objects from/to a compact binary-like grammar. More...

Namespaces

namespace  s11n
 

The s11n serialization (s11n) framework is an object serialization framework for C++ modelled heavily off work by Rusty Ballinger (bozo@users.sourceforge.net http://libfunutil.sourceforge.net).


namespace  s11n::io
 

The s11n::io namespace defines some i/o-related types which conform to the conventions expected by the s11n::de/serialize() core functions.


namespace  s11n::io::sharing

Defines

#define compact_SERIALIZER_H_INCLUDED   1
#define MAGIC_COOKIE_COMPACT   "51191011"
#define INDENT(LEVEL, ECHO)   indent = ""; for( size_t i = 0; i < depth + LEVEL; i++ ) { indent += '\t'; if(ECHO) dest << '\t'; }
#define OS_INT(C, W)   dest.width(W);dest<<std::hex<<std::right<<(unsigned int)(C);
#define INSERT(vaR, WIDTH)

Define Documentation

#define compact_SERIALIZER_H_INCLUDED   1

Definition at line 2 of file compact_serializer.hpp.

#define INDENT ( LEVEL,
ECHO   )     indent = ""; for( size_t i = 0; i < depth + LEVEL; i++ ) { indent += '\t'; if(ECHO) dest << '\t'; }

Definition at line 15 of file compact_serializer.hpp.

#define INSERT ( vaR,
WIDTH   ) 
Value:
sizE = vaR.size(); OS_INT(sizE,WIDTH); \
                for( ins = 0; ins < sizE; ins++ ) {\
            /*OS_INT(vaR[ins],charwidth);*/ \
            dest << (unsigned char) vaR[ins]; \
        };
#define MAGIC_COOKIE_COMPACT   "51191011"
#define OS_INT ( C,
 )     dest.width(W);dest<<std::hex<<std::right<<(unsigned int)(C);

Generated on Sat Mar 20 12:29:24 2010 for libs11n-1.2.10 by  doxygen 1.6.1