Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

DCFencode_Rtmra_double_array.cpp

Go to the documentation of this file.
00001 //DCFencode_Rtmra_double_array.cpp
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 //              Created:                Aug 27, 2001
00007 //              Last Modified:          May 3, 2002
00008 //////////////////////////////////////////////////////////////////////
00009 
00010 #include "DCFencode_Rtmra_double_array.h"
00011 
00012 void DCFencode< Rtmra<double,array> >::descr( ostream& os ) {
00013    os << "DCF DESCR quantcoef= " << _quantcoef << endl;
00014    os << "DCF DESCR bplen_coef= " << _bplen_coef << endl;
00015    os << "DCF DESCR amax= " << _amax << endl;
00016    os << "DCF DESCR bplen_a= " << _bplen_a << endl;
00017 };
00018 
00019 ostream& operator << ( ostream& os, DCFencode< Rtmra<double,array> >& enc ) {
00020    bytepack bp;
00021    os << bp( enc._quantcoef, sizeof(double) );
00022    os << bp( enc._bplen_coef, 1 );
00023    os << bp( enc._amax, sizeof(int) );
00024    os << bp( enc._bplen_a, 1 );
00025    return os;
00026 };
00027 
00028 istream& operator >> ( istream& is, DCFencode< Rtmra<double,array> >& enc ) {
00029    bytepack bp;
00030    is >> bp( 0, sizeof(double) ); enc._quantcoef = double(bp);
00031    is >> bp(0,1); enc._bplen_coef = bp;
00032    is >> bp(0, sizeof(int) ); enc._amax = int(bp);
00033    is >> bp(0,1); enc._bplen_a = bp;
00034    return is;
00035 };
00036 

Generated on Mon May 31 21:38:43 2004 for SR2k4 Assembler by doxygen 1.3.6