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

DCFencode_Rtmra_double_scalar.cpp

Go to the documentation of this file.
00001 // DCFencode_Rtmra_double_scalar.cpp
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 
00007 #include "DCFencode_Rtmra_double_scalar.h"
00008 
00009 void DCFencode< Rtmra<double,scalar> >::descr( ostream& os ) 
00010 {
00011    os << "DCF DESCR quantcoef= " << _quantcoef << endl;
00012    os << "DCF DESCR bplen_coef= " << _bplen_coef << endl;
00013 };
00014 
00015 ostream& operator << ( ostream& os, DCFencode< Rtmra<double,scalar> >& enc ) {
00016    bytepack bp;
00017    os << bp( enc._quantcoef, sizeof(double) );
00018    os << bp( enc._bplen_coef, 1 );
00019    return os;
00020 };
00021 
00022 istream& operator >> ( istream& is, DCFencode< Rtmra<double,scalar> >& enc ) {
00023    bytepack bp;
00024    is >> bp( 0, sizeof(double) ); enc._quantcoef = double(bp);
00025    is >> bp(0,1); enc._bplen_coef = bp;
00026    return is;
00027 };
00028 

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