EMF::DATASTREAM
Support different endian modes when reading and writing the metafile.
- Provided by: libemf-doc (Version: 1.0.13-8build1)
- Source: libemf
- Report a bug
Support different endian modes when reading and writing the metafile.
#include <libemf.h>
DATASTREAM (::FILE *fp=0)
void setStream (::FILE *fp)
DATASTREAM & operator<< (const BYTE &byte)
DATASTREAM & operator>> (BYTE &byte)
DATASTREAM & operator<< (const WORD &word)
DATASTREAM & operator>> (WORD &word)
DATASTREAM & operator<< (const INT16 &word)
DATASTREAM & operator>> (INT16 &word)
DATASTREAM & operator<< (const DWORD &dword)
DATASTREAM & operator>> (DWORD &dword)
DATASTREAM & operator<< (const LONG &long_)
DATASTREAM & operator>> (LONG &long_)
DATASTREAM & operator<< (const INT &int_)
DATASTREAM & operator>> (INT &int_)
DATASTREAM & operator<< (const UINT &uint)
DATASTREAM & operator>> (UINT &uint)
DATASTREAM & operator<< (const FLOAT &float_)
DATASTREAM & operator>> (FLOAT &float_)
DATASTREAM & operator<< (const PADDING
&padding)
DATASTREAM & operator<< (const RECTL &rectl)
DATASTREAM & operator>> (RECTL &rectl)
DATASTREAM & operator<< (const SIZEL &sizel)
DATASTREAM & operator>> (SIZEL &sizel)
DATASTREAM & operator<< (const WCHARSTR
&wcharstr)
DATASTREAM & operator>> (WCHARSTR
&wcharstr)
DATASTREAM & operator<< (const CHARSTR
&charstr)
DATASTREAM & operator>> (CHARSTR &charstr)
DATASTREAM & operator<< (const ::EMR &emr)
DATASTREAM & operator>> (::EMR &emr)
DATASTREAM & operator<< (const POINT &point)
DATASTREAM & operator>> (POINT &point)
DATASTREAM & operator<< (const POINTL &pointl)
DATASTREAM & operator>> (POINTL &pointl)
DATASTREAM & operator<< (const POINT16 &point)
DATASTREAM & operator>> (POINT16 &point)
DATASTREAM & operator<< (const XFORM &xform)
DATASTREAM & operator>> (XFORM &xform)
DATASTREAM & operator<< (const BYTEARRAY
&array)
DATASTREAM & operator>> (BYTEARRAY &array)
DATASTREAM & operator<< (const POINTLARRAY
&array)
DATASTREAM & operator>> (POINTLARRAY
&array)
DATASTREAM & operator<< (const POINT16ARRAY
&array)
DATASTREAM & operator>> (POINT16ARRAY
&array)
DATASTREAM & operator<< (const INTARRAY
&array)
DATASTREAM & operator>> (INTARRAY &array)
DATASTREAM & operator<< (const DWORDARRAY
&array)
DATASTREAM & operator>> (DWORDARRAY &array)
DATASTREAM & operator<< (const ::EMRTEXT &text)
DATASTREAM & operator>> (::EMRTEXT &text)
DATASTREAM & operator<< (const LOGPEN &pen)
DATASTREAM & operator>> (LOGPEN &pen)
DATASTREAM & operator<< (const EXTLOGPEN &pen)
DATASTREAM & operator>> (EXTLOGPEN &pen)
DATASTREAM & operator<< (const LOGBRUSH &brush)
DATASTREAM & operator>> (LOGBRUSH &brush)
DATASTREAM & operator<< (const LOGFONTW &font)
DATASTREAM & operator>> (LOGFONTW &font)
DATASTREAM & operator<< (const PANOSE &panose)
DATASTREAM & operator>> (PANOSE &panose)
DATASTREAM & operator<< (const EXTLOGFONTW &font)
DATASTREAM & operator>> (EXTLOGFONTW &font)
DATASTREAM & operator<< (const LOGPALETTE
&palette)
DATASTREAM & operator>> (LOGPALETTE &palette)
Support different endian modes when reading and writing the metafile.
To support different endian modes, rather than just writing the structures directly to a file via fwrite( &emr, ...), we have to write each element of the structure separately, swapping bytes as necessary. datastream supports this. Remarkably similar to the QDataStream class from Qt. So, too, for reading.
Constructor for DATASTREAM.
Parameters
Referenced by operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), and operator>>().
Output an Enhanced Metafile Record header.
Parameters
References DATASTREAM().
Output an Enhanced Metafile Text Record.
Parameters
References DATASTREAM().
Output a byte to the stream (not swabbed or anything).
Parameters
References DATASTREAM().
Output an array of BYTEs.
Parameters
References EMF::BYTEARRAY::array_, DATASTREAM(), and EMF::BYTEARRAY::n_.
Output a single byte character string.
Parameters
References DATASTREAM(), EMF::CHARSTR::length_, and EMF::CHARSTR::string_.
Output a double word (long) to the stream (swabbed).
Parameters
References DATASTREAM().
Output an array of double words (longs).
Parameters
References DATASTREAM(), EMF::DWORDARRAY::dwords_, and EMF::DWORDARRAY::n_.
Output an Extended Logical Font definition (using WCHAR strings).
Parameters
References DATASTREAM().
Output an Extended Logical Pen definition.
Parameters
References DATASTREAM().
Output a single precision float to the stream (swabbed).
Parameters
References DATASTREAM().
Output a (long) int to the stream (swabbed).
Parameters
References DATASTREAM().
Output a (short, 16-bit) word to the stream (swabbed).
Parameters
References DATASTREAM().
Output an array of (long) ints.
Parameters
References DATASTREAM(), EMF::INTARRAY::ints_, and EMF::INTARRAY::n_.
Output a Logical Brush definition.
Parameters
References DATASTREAM().
Output a Logical Font definition (using WCHAR strings).
Parameters
References DATASTREAM().
Output a Logical Palette.
Parameters
References DATASTREAM().
Output a Logical Pen definition.
Parameters
References DATASTREAM().
Output a long int to the stream (swabbed).
Parameters
References DATASTREAM().
Output a series of '\0's to pad out a record.
Parameters
References DATASTREAM(), EMF::PADDING::padding_, and EMF::PADDING::size_.
Output a Panose structure.
Parameters
References DATASTREAM().
Output a POINT structure.
Parameters
References DATASTREAM().
Output a POINT16 structure.
Parameters
References DATASTREAM().
Output an array of POINT16s.
Parameters
References DATASTREAM(), EMF::POINT16ARRAY::n_, and EMF::POINT16ARRAY::points_.
Output a POINTL structure.
Parameters
References DATASTREAM().
Output an array of POINTLs.
Parameters
References DATASTREAM(), EMF::POINTLARRAY::n_, and EMF::POINTLARRAY::points_.
Output a RECTL structure.
Parameters
References DATASTREAM().
Output a SIZEL structure.
Parameters
References DATASTREAM().
Output a (long) unsigned int to the stream (swabbed).
Parameters
References DATASTREAM().
Output a WCHAR string (note: the individual characters are swabbed).
Parameters
References DATASTREAM(), EMF::WCHARSTR::length_, and EMF::WCHARSTR::string_.
Output a (short) word to the stream (swabbed).
Parameters
References DATASTREAM().
Output an XFORM structure.
Parameters
References DATASTREAM().
Input an Enhanced Metafile Record header.
Parameters
References DATASTREAM().
Input an Enhanced Metafile Text Record.
Parameters
References DATASTREAM().
Input a byte from the stream (not swabbed or anything).
Parameters
References DATASTREAM().
Input an array of BYTEs.
Parameters
References EMF::BYTEARRAY::array_, DATASTREAM(), and EMF::BYTEARRAY::n_.
Input a single byte character string.
Parameters
References DATASTREAM(), EMF::CHARSTR::length_, and EMF::CHARSTR::string_.
Input a double word (long) from the stream (swabbed).
Parameters
References DATASTREAM().
Input an array of double words (longs).
Parameters
References DATASTREAM(), EMF::DWORDARRAY::dwords_, and EMF::DWORDARRAY::n_.
Input an Extended Logical Font definition (using WCHAR strings).
Parameters
References DATASTREAM().
Input an Extended Logical Pen definition.
Parameters
References DATASTREAM().
Input a single precision float from the stream (swabbed).
Parameters
References DATASTREAM().
Input a (long) int from the stream (swabbed).
Parameters
References DATASTREAM().
Input a (short, 16-bit) word from the stream (swabbed).
Parameters
References DATASTREAM().
Input an array of (long) ints.
Parameters
References DATASTREAM(), EMF::INTARRAY::ints_, and EMF::INTARRAY::n_.
Input a Logical Brush definition.
Parameters
References DATASTREAM().
Input a Logical Font definition (using WCHAR strings).
Parameters
References DATASTREAM().
Input a Logical Palette.
Parameters
References DATASTREAM().
Input a Logical Pen definition.
Parameters
References DATASTREAM().
Input a long int from the stream (swabbed).
Parameters
References DATASTREAM().
Input a Panose structure.
Parameters
References DATASTREAM().
Input a POINT structure.
Parameters
References DATASTREAM().
Input a POINT16 structure.
Parameters
References DATASTREAM().
Input an array of POINT16s.
Parameters
References DATASTREAM(), EMF::POINT16ARRAY::n_, and EMF::POINT16ARRAY::points_.
Input a POINTL structure.
Parameters
References DATASTREAM().
Input an array of POINTLs.
Parameters
References DATASTREAM(), EMF::POINTLARRAY::n_, and EMF::POINTLARRAY::points_.
Input a RECTL structure.
Parameters
References DATASTREAM().
Input a SIZEL structure.
Parameters
References DATASTREAM().
Input a (long) unsigned int from the stream (swabbed).
Parameters
References DATASTREAM().
Input a WCHAR string (note: the individual characters are swabbed.)
Parameters
References DATASTREAM(), EMF::WCHARSTR::length_, and EMF::WCHARSTR::string_.
Input a (short) word from the stream (swabbed).
Parameters
References DATASTREAM().
Input an XFORM structure.
Parameters
References DATASTREAM().
Use the given FILE stream as the input/output destination.
Parameters
Generated automatically by Doxygen for libemf from the source code.