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

DCFencode_Rtrsmra_double_scalar.cpp

Go to the documentation of this file.
00001 //DCFencode_Rtrsmra_double_scalar.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_Rtrsmra_double_scalar.h"
00011 
00012 void DCFencode< Rtrsmra<double,scalar> >::descr( ostream& os ) 
00013 {
00014    os << "DCF DESCR quantcoef= " << _quantcoef << endl;
00015    os << "DCF DESCR bplen_coef= " << _bplen_coef << endl;
00016 
00017 };
00018 
00019 ostream& operator << ( ostream& os, DCFencode< Rtrsmra<double,scalar> >& enc ) 
00020 {
00021    bytepack bp;
00022    os << bp( enc._quantcoef, sizeof(double) );
00023    os << bp( enc._bplen_coef, 1 );
00024    return os;
00025 };
00026 
00027 istream& operator >> ( istream& is, DCFencode< Rtrsmra<double,scalar> >& enc ) 
00028 {
00029    bytepack bp;
00030    is >> bp( 0, sizeof(double) ); enc._quantcoef = double(bp);
00031    is >> bp( 0, 1 ); enc._bplen_coef = bp;
00032    return is;
00033 };
00034 

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