sprint 1-alpha
Namespaces | Defines | Functions
sprint/io/iostream.h File Reference
#include <cstring>
#include <sprint/buffer_cast.h>

Go to the source code of this file.

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


Defines

#define IMPLEMENT_OUTSTREAM_OPERATOR_STRING(Type)
#define IMPLEMENT_OUTSTREAM_OPERATOR_CONST_CHAR(Type)   inline Type & operator << ( Type & d, const char * str) { d.write(str, ::strlen(str) ); return d; }
#define IMPLEMENT_OUTSTREAM_OPERATOR_CHAR(Type)   inline Type & operator << ( Type & d, char c) { d.write(&c, 1 ); return d; }
#define IMPLEMENT_OUTSTREAM_OPERATOR_GENERIC(Type)   template<class R> Type & operator << (Type & d, const R & obj) { sprint::_out_stream(d,obj); return d; }
#define IMPLEMENT_OUTSTREAM_OPERATOR(Type)

Functions

template<class _Ostream , class R >
void sprint::_out_stream (_Ostream &d, const R &obj)

Detailed Description

add << T operator to a generic (io) template


Define Documentation

#define IMPLEMENT_OUTSTREAM_OPERATOR (   Type)
Value:
IMPLEMENT_OUTSTREAM_OPERATOR_STRING(Type)       \
      IMPLEMENT_OUTSTREAM_OPERATOR_CONST_CHAR(Type) \
      IMPLEMENT_OUTSTREAM_OPERATOR_CHAR(Type)   \
      IMPLEMENT_OUTSTREAM_OPERATOR_GENERIC(Type)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines