Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PStream.cc File Reference

#include "PStream.h"
#include <plearn/math/pl_math.h>

Include dependency graph for PStream.cc:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  PLearn

Defines

#define IMPLEMENT_TYPICAL_BASETYPE_BINREAD_(BASETYPE)


Define Documentation

#define IMPLEMENT_TYPICAL_BASETYPE_BINREAD_ BASETYPE   ) 
 

Value:

void binread_(PStream& in, BASETYPE* x, \ unsigned int n, unsigned char typecode) \ { \ if(typecode==TypeTraits<BASETYPE>::little_endian_typecode()) \ { \ in.read((char*)x, n*sizeof(BASETYPE)); \ if(byte_order()==BIG_ENDIAN_ORDER) \ endianswap(x,n); \ } \ else if(typecode==TypeTraits<BASETYPE>::big_endian_typecode()) \ { \ in.read((char*)x, n*sizeof(BASETYPE)); \ if(byte_order()==LITTLE_ENDIAN_ORDER) \ endianswap(x,n); \ } \ else \ PLERROR("In binread_ incompatible typecode"); \ }

Definition at line 1380 of file PStream.cc.


Generated on Tue Aug 17 16:18:32 2004 for PLearn by doxygen 1.3.7