#include <DCFsbistreamBase.h>
Inheritance diagram for DCFsbistreamBase:


|
|
Definition at line 16 of file DCFsbistreamBase.cpp. References _descript, _finalstep, _lendescript, and _mmax.
00017 : _version(0), _revision(0), _author(0), 00018 _blocknum(0), _mthis0(0), _mthis1(0), _mmax(0), 00019 _bplen_sizeb(1), _bplen_n(1), 00020 _enctype(0), _encsizeb(2), 00021 _is(&is) 00022 { 00023 #ifdef STORM_DEBUG 00024 cout << "DCFsbistreamBase Constructor.\n"; 00025 #endif 00026 _descript = "\0"; 00027 _lendescript=_descript.size(); 00028 _finalstep =( 1 << _mmax ) - 1; 00029 } |
|
|
Definition at line 26 of file DCFsbistreamBase.h.
00026 {}
|
|
|
|
|
|
Definition at line 27 of file 2/DCFsbistreamBase.h.
00027 {}
|
|
|
Definition at line 45 of file 2/DCFsbistreamBase.h.
00045 { return _arraydim; }
|
|
|
Definition at line 43 of file 2/DCFsbistreamBase.h. References _author.
00043 { return _author; }
|
|
|
Definition at line 101 of file DCFsbistreamBase.h. References _author.
00101 { return _author; }
|
|
|
Definition at line 98 of file DCFsbistreamBase.h. References _author.
00098 { _author = author; }
|
|
|
Definition at line 117 of file DCFsbistreamBase.h. References _blocknum.
00117 { return _blocknum; }
|
|
|
Definition at line 114 of file DCFsbistreamBase.h. References _blocknum.
00114 { _blocknum = blocknum; }
|
|
|
Definition at line 62 of file 2/DCFsbistreamBase.h.
00062 { return _bplen_a; }
|
|
|
Definition at line 60 of file 2/DCFsbistreamBase.h.
00060 { return _bplen_coef; }
|
|
|
Definition at line 59 of file 2/DCFsbistreamBase.h.
00059 { return _bplen_mpsizeb; }
|
|
|
Definition at line 61 of file 2/DCFsbistreamBase.h.
00061 { return _bplen_n; }
|
|
|
Definition at line 155 of file DCFsbistreamBase.h. Referenced by DCFsbistream< Data_t >.operator>>().
00155 { return _bplen_n; }
|
|
|
Definition at line 152 of file DCFsbistreamBase.h.
00152 { _bplen_n=bplen_n; }
|
|
|
Definition at line 149 of file DCFsbistreamBase.h. Referenced by DCFsbistream< Data_t >.operator>>().
00149 { return _bplen_sizeb; }
|
|
|
Definition at line 143 of file DCFsbistreamBase.h.
00144 {
00145 _bplen_sizeb = bplen_sizeb;
00146 }
|
|
|
Reimplemented in DCFsbifstream< Data_t >, and DCFsbifstream< Data_t >. Definition at line 37 of file 2/DCFsbistreamBase.h.
00037 {}
|
|
|
Reimplemented in DCFsbifstream< Data_t >, and DCFsbifstream< Data_t >. Definition at line 60 of file DCFsbistreamBase.h.
00060 {}
|
|
|
Definition at line 56 of file 2/DCFsbistreamBase.h. References _cmax_exist.
00056 { return _cmax_exist; }
|
|
|
Definition at line 58 of file 2/DCFsbistreamBase.h. References _cmax_theory.
00058 { return _cmax_theory; }
|
|
|
Definition at line 54 of file 2/DCFsbistreamBase.h. References _cmax_this.
00054 { return _cmax_this; }
|
|
|
Definition at line 55 of file 2/DCFsbistreamBase.h. References _cmin_exist.
00055 { return _cmin_exist; }
|
|
|
Definition at line 57 of file 2/DCFsbistreamBase.h. References _cmin_theory.
00057 { return _cmin_theory; }
|
|
|
Definition at line 53 of file 2/DCFsbistreamBase.h. References _cmin_this.
00053 { return _cmin_this; }
|
|
|
Reimplemented in DCFsbistream< Data_t >, and DCFsbistream< Rtmra_t >. Definition at line 31 of file DCFsbistreamBase.cpp. References _author, _blocknum, _descript, _encsizeb, _enctype, _finalstep, _lendescript, _mmax, _mthis0, _mthis1, _revision, and _version. Referenced by DCFsbistream< Data_t >.descr().
00032 {
00033 cout << "DCFsbistream<>::descr();\n";
00034 cout << " version=" <<_version << '\n';
00035 cout << " revision=" << _revision << '\n';
00036 cout << " author=" << _author << '\n';
00037 cout << " lendescript=" << _lendescript << '\n';
00038 cout << " descript=" << _descript << '\n';
00039 cout << " blocknum=" << _blocknum << '\n';
00040 cout << " mthis0=" << _mthis0 << '\n';
00041 cout << " mthis1=" << _mthis1 << '\n';
00042 cout << " mmax=" << _mmax << '\n';
00043 cout << " bplen_sizeb=" << _bplen_sizeb << '\n';
00044 cout << " bplen_n=" << _bplen_n << '\n';
00045
00046 cout << " enctype=" << _enctype << '\n';
00047 cout << " encsizeb=" << _encsizeb << '\n';
00048 cout << " finalstep=" << _finalstep << '\n';
00049 };
|
|
|
Definition at line 44 of file 2/DCFsbistreamBase.h. References _descript.
00044 { return _descript; }
|
|
|
Definition at line 111 of file DCFsbistreamBase.h. References _descript.
00111 { return _descript; }
|
|
|
Definition at line 104 of file DCFsbistreamBase.h. References _descript, and _lendescript.
00105 {
00106 _lendescript = descript.size();
00107 _descript = descript;
00108 }
|
|
|
Definition at line 167 of file DCFsbistreamBase.h. References _encsizeb.
00167 { return _encsizeb; }
|
|
|
Definition at line 164 of file DCFsbistreamBase.h. References _encsizeb.
00164 { _encsizeb = encsizeb; }
|
|
|
Definition at line 161 of file DCFsbistreamBase.h. References _enctype.
00161 { return _enctype; }
|
|
|
Definition at line 158 of file DCFsbistreamBase.h. References _enctype.
00158 { _enctype = enctype; }
|
|
|
Definition at line 64 of file 2/DCFsbistreamBase.h. References _finalstep.
00064 { return _finalstep; }
|
|
|
|
|
|
Definition at line 176 of file DCFsbistreamBase.h. References _finalstep.
00176 { return _finalstep; }
|
|
|
Definition at line 170 of file DCFsbistreamBase.h. References _finalstep.
00171 {
00172 _finalstep = finalstep;
00173 }
|
|
||||||||||||||||
|
Reimplemented in DCFsbifstream< Data_t >. Definition at line 38 of file 2/DCFsbistreamBase.h.
00038 {}
|
|
||||||||||||||||
|
Reimplemented in DCFsbifstream< Data_t >. Definition at line 62 of file DCFsbistreamBase.h. Referenced by DCFsbistream< Rtmra_t >.operator>>(), and DCFsbistream< Data_t >.operator>>().
00062 {}
|
|
|
Definition at line 179 of file DCFsbistreamBase.h. References open().
00179 { open(); }
|
|
|
Definition at line 73 of file 2/DCFsbistreamBase.cpp. References _author, _cmax_exist, _cmax_theory, _cmax_this, _cmin_exist, _cmin_theory, _cmin_this, _datatype_code, _descript, _finalstep, _mmax_exist, _mmax_theory, _mmax_this, _mmin_exist, _mmin_theory, _mmin_this, _release, _revision, _sbn, _version, and ii.
00074 {
00075 char c;
00076 bytepack bp;
00077
00078 char ptc[9];
00079 for( int i = 0; i < 8; i++ ) {
00080 (*_is) >> ptc[i];
00081 #ifdef STORM_DEBUG
00082 cout << ptc[i];
00083 #endif
00084 }
00085 ptc[8] = 0;
00086 if ( strcmp(ptc,"MCFsb___\0") ) {
00087 cout << "not a DCFsb file!\n";
00088 }
00089
00090 (*_is) >> bp( 0, 4 ); int mcfsizeb1 = int(bp);
00091
00092 (*_is) >> bp( 0, 1 ); _version = int(bp);
00093 (*_is) >> bp( 0, 1 ); _revision = int(bp);
00094 (*_is) >> bp( 0, 1 ); _release = int(bp);
00095 (*_is) >> bp( 0, 1 ); _author = int(bp);
00096
00097 (*_is) >> bp( 0, 1 ); int ii = int(bp);
00098 _descript="";
00099 for( int i = 0; i < ii; i++ ) {
00100 (*_is).get(c);
00101 _descript += c;
00102 }
00103
00104 // (*_is) >> bp( 0, 4 ); int mpsizeb1 = int(bp);
00105 (*_is) >> bp( 0, 4 ); int sbsizeb1 = int(bp);
00106
00107 (*_is) >> bp( 0, 1 );
00108 (*_is) >> bp( 0, 1 ); _arraydim = int(bp);
00109 (*_is) >> bp( 0, 1 ); _bplen_mpsizeb = int(bp);
00110 (*_is) >> bp( 0, 1 ); _bplen_coef = int(bp);
00111 (*_is) >> bp( 0, 1 ); _bplen_n = int(bp);
00112 for( int d = 0; d < _arraydim; ++d ) {
00113 (*_is) >> bp( 0, 1 ); _bplen_a = int(bp);
00114 }
00115
00116 (*_is) >> bp( 0, 4 ); _sbn = int(bp);
00117 (*_is) >> bp( 0, 1 ); _mmin_this = int(bp);
00118 (*_is) >> bp( 0, 1 ); _mmax_this = int(bp);
00119 (*_is) >> bp( 0, 1 ); _mmin_exist = int(bp);
00120 (*_is) >> bp( 0, 1 ); _mmax_exist = int(bp);
00121 (*_is) >> bp( 0, 1 ); _mmin_theory = int(bp);
00122 (*_is) >> bp( 0, 1 ); _mmax_theory = int(bp);
00123 (*_is) >> bp( 0, 1 ); _cmin_this = int(bp);
00124 (*_is) >> bp( 0, 1 ); _cmax_this = int(bp);
00125 (*_is) >> bp( 0, 1 ); _cmin_exist = int(bp);
00126 (*_is) >> bp( 0, 1 ); _cmax_exist = int(bp);
00127 (*_is) >> bp( 0, 1 ); _cmin_theory = int(bp);
00128 (*_is) >> bp( 0, 1 ); _cmax_theory = int(bp);
00129 (*_is) >> bp( 0, 1 ); int datatype_code = int(bp);
00130 (*_is) >> bp( 0, 1 );
00131 (*_is) >> bp( 0, 1 );
00132 (*_is) >> bp( 0, 1 );
00133
00134 // _finalstep = ( 1 << _mmax ) - 1; HACK
00135 _finalstep = -1;
00136
00137 if (datatype_code != _datatype_code )
00138 cout << "DCFsbistreamBase::inheader(): WARNING: datatype_code mismatch\n";
00139
00140 };
|
|
|
Reimplemented in DCFsbifstream< Data_t >, and DCFsbifstream< Data_t >. |
|
|
Reimplemented in DCFsbifstream< Data_t >, and DCFsbifstream< Data_t >. Definition at line 182 of file DCFsbistreamBase.h.
00182 { return (*_is).good(); }
|
|
|
Definition at line 140 of file DCFsbistreamBase.h. References _mmax.
00140 { return _mmax; }
|
|
|
Definition at line 132 of file DCFsbistreamBase.h. References _mmax, mthis0(), and mthis1().
|
|
|
Definition at line 50 of file 2/DCFsbistreamBase.h. References _mmax_exist.
00050 { return _mmax_exist; }
|
|
|
Definition at line 52 of file 2/DCFsbistreamBase.h. References _mmax_theory.
00052 { return _mmax_theory; }
|
|
|
Definition at line 48 of file 2/DCFsbistreamBase.h. References _mmax_this.
00048 { return _mmax_this; }
|
|
|
Definition at line 49 of file 2/DCFsbistreamBase.h. References _mmin_exist.
00049 { return _mmin_exist; }
|
|
|
Definition at line 51 of file 2/DCFsbistreamBase.h. References _mmin_theory.
00051 { return _mmin_theory; }
|
|
|
Definition at line 47 of file 2/DCFsbistreamBase.h. References _mmin_this.
00047 { return _mmin_this; }
|
|
|
Definition at line 123 of file DCFsbistreamBase.h. References _mthis0. Referenced by mmax().
00123 { return _mthis0; }
|
|
|
Definition at line 120 of file DCFsbistreamBase.h. References _mthis0.
00120 { _mthis0 = mthis0; }
|
|
|
Definition at line 129 of file DCFsbistreamBase.h. References _mthis1. Referenced by mmax().
00129 { return _mthis1; }
|
|
|
Definition at line 126 of file DCFsbistreamBase.h. References _mthis1.
00126 { _mthis1 = mthis1; }
|
|
|
Reimplemented in DCFsbifstream< Data_t >, DCFsbistream< Data_t >, DCFsbifstream< Data_t >, and DCFsbistream< Rtmra_t >. |
|
|
Reimplemented in DCFsbifstream< Data_t >, DCFsbistream< Data_t >, DCFsbifstream< Data_t >, and DCFsbistream< Rtmra_t >. Definition at line 52 of file DCFsbistreamBase.cpp. References _author, _blocknum, _descript, _encsizeb, _enctype, _finalstep, _lendescript, _mmax, _mthis0, _mthis1, _revision, and _version. Referenced by in(), and DCFsbistream< Data_t >.open().
00053 {
00054 char c;
00055 char ptc[7];
00056 bytepack bp;
00057
00058 for( int i = 0; i < 6; i++ ) {
00059 (*_is) >> ptc[i];
00060 #ifdef STORM_DEBUG
00061 cout << ptc[i];
00062 #endif
00063 }
00064
00065 ptc[6] = 0;
00066
00067 if ( strcmp(ptc,"DCFsb_\0") ) {
00068 cout << "not a DCFsb file!\n";
00069 }
00070
00071 (*_is) >> bp(0,1); _version = bp;
00072 (*_is) >> bp(0,1); _revision = bp;
00073 (*_is) >> bp(0,2); _author = bp;
00074 (*_is) >> bp(0,1); _lendescript = bp;
00075
00076 _descript="";
00077 for( int i = 0; i < _lendescript; i++ ) {
00078 (*_is).get(c);
00079 _descript += c;
00080 }
00081
00082 (*_is) >> bp(0,2); _blocknum = bp;
00083 (*_is) >> bp(0,1); _mthis0 = bp;
00084 (*_is) >> bp(0,1); _mthis1 = bp;
00085 (*_is) >> bp(0,1); _mmax = bp;
00086 (*_is) >> bp(0,1); _bplen_sizeb = bp;
00087 (*_is) >> bp(0,1); _bplen_n = bp;
00088
00089 (*_is) >> bp(0,1); _enctype = bp;
00090 (*_is) >> bp(0,1); _encsizeb = bp;
00091
00092 _finalstep = ( 1 << _mmax ) - 1;
00093 };
|
|
|
Definition at line 42 of file 2/DCFsbistreamBase.h. References _release.
00042 { return _release; }
|
|
|
Definition at line 37 of file 2/DCFsbistreamBase.cpp. References _author, _cmax_exist, _cmax_theory, _cmax_this, _cmin_exist, _cmin_theory, _cmin_this, _datatype_code, _descript, _finalstep, _mmax_exist, _mmax_theory, _mmax_this, _mmin_exist, _mmin_theory, _mmin_this, _release, _revision, _sbn, and _version.
00038 {
00039 os << "DCFsbistreamBase::report():\n";
00040 os << " DCF REPORT version= " <<_version << endl;
00041 os << " DCF REPORT revision= " << _revision << endl;
00042 os << " DCF REPORT release= " << _release << endl;
00043 os << " DCF REPORT author= " << _author << endl;
00044 os << " DCF REPORT descript.size()= " << _descript.size() << endl;
00045 os << " DCF REPORT descript= " << _descript << endl;
00046
00047 os << " DCF REPORT arraydim= " << _arraydim << endl;
00048 os << " DCF REPORT bplen_mpsizeb= " << _bplen_mpsizeb << endl;
00049 os << " DCF REPORT bplen_coef= " << _bplen_coef << endl;
00050 os << " DCF REPORT bplen_n= " << _bplen_n << endl;
00051 for( int d = 0; d < _arraydim; ++d ) {
00052 os << " DCF REPORT bplen_a[" << d << "]= " << _bplen_a << endl;
00053 }
00054
00055 os << " DCF REPORT sbn= " << _sbn << endl;
00056 os << " DCF REPORT mmin_this= " << _mmin_this << endl;
00057 os << " DCF REPORT mmax_this= " << _mmax_this << endl;
00058 os << " DCF REPORT mmin_exist= " << _mmin_exist << endl;
00059 os << " DCF REPORT mmax_exist= " << _mmax_exist << endl;
00060 os << " DCF REPORT mmin_theory= " << _mmin_theory << endl;
00061 os << " DCF REPORT mmax_theory= " << _mmax_theory << endl;
00062 os << " DCF REPORT cmin_this= " << _cmin_this << endl;
00063 os << " DCF REPORT cmax_this= " << _cmax_this << endl;
00064 os << " DCF REPORT cmin_exist= " << _cmin_exist << endl;
00065 os << " DCF REPORT cmax_exist= " << _cmax_exist << endl;
00066 os << " DCF REPORT cmin_theory= " << _cmin_theory << endl;
00067 os << " DCF REPORT cmax_theory= " << _cmax_theory << endl;
00068 os << " DCF REPORT datatype_code= " << _datatype_code << endl;
00069
00070 os << " DCF REPORT finalstep=" << _finalstep << '\n';
00071 };
|
|
|
Definition at line 41 of file 2/DCFsbistreamBase.h. References _revision.
00041 { return _revision; }
|
|
|
Definition at line 95 of file DCFsbistreamBase.h. References _revision.
00095 { return _revision; }
|
|
|
Definition at line 92 of file DCFsbistreamBase.h. References _revision.
00092 { _revision = revision; }
|
|
|
Definition at line 46 of file 2/DCFsbistreamBase.h. References _sbn.
00046 { return _sbn; }
|
|
|
Definition at line 40 of file 2/DCFsbistreamBase.h. References _version.
00040 { return _version; }
|
|
|
Definition at line 89 of file DCFsbistreamBase.h. References _version.
00089 { return _version; }
|
|
|
Definition at line 86 of file DCFsbistreamBase.h. References _version.
00086 { _version = version; }
|
|
|
Definition at line 73 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 70 of file 2/DCFsbistreamBase.h. Referenced by author(), descr(), inheader(), open(), and report(). |
|
|
Definition at line 70 of file DCFsbistreamBase.h. Referenced by blocknum(), descr(), and open(). |
|
|
Definition at line 88 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 85 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 84 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 87 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 74 of file DCFsbistreamBase.h. |
|
|
Definition at line 81 of file 2/DCFsbistreamBase.h. Referenced by cmax_exist(), inheader(), and report(). |
|
|
Definition at line 82 of file 2/DCFsbistreamBase.h. Referenced by cmax_theory(), inheader(), and report(). |
|
|
Definition at line 80 of file 2/DCFsbistreamBase.h. Referenced by cmax_this(), inheader(), and report(). |
|
|
Definition at line 81 of file 2/DCFsbistreamBase.h. Referenced by cmin_exist(), inheader(), and report(). |
|
|
Definition at line 82 of file 2/DCFsbistreamBase.h. Referenced by cmin_theory(), inheader(), and report(). |
|
|
Definition at line 80 of file 2/DCFsbistreamBase.h. Referenced by cmin_this(), inheader(), and report(). |
|
|
Definition at line 86 of file 2/DCFsbistreamBase.h. Referenced by inheader(), and report(). |
|
|
Definition at line 71 of file 2/DCFsbistreamBase.h. Referenced by DCFsbistreamBase(), descr(), descript(), inheader(), open(), and report(). |
|
|
Definition at line 78 of file DCFsbistreamBase.h. Referenced by descr(), encsizeb(), and open(). |
|
|
Definition at line 77 of file DCFsbistreamBase.h. |
|
|
Definition at line 92 of file 2/DCFsbistreamBase.h. Referenced by DCFsbistreamBase(), descr(), finalstep(), inheader(), open(), and report(). |
|
|
Definition at line 90 of file 2/DCFsbistreamBase.h. |
|
|
Definition at line 80 of file DCFsbistreamBase.h. |
|
|
Definition at line 68 of file DCFsbistreamBase.h. Referenced by DCFsbistreamBase(), descr(), descript(), and open(). |
|
|
Definition at line 73 of file DCFsbistreamBase.h. Referenced by DCFsbistreamBase(), descr(), mmax(), and open(). |
|
|
Definition at line 77 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmax_exist(), and report(). |
|
|
Definition at line 78 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmax_theory(), and report(). |
|
|
Definition at line 76 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmax_this(), and report(). |
|
|
Definition at line 77 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmin_exist(), and report(). |
|
|
Definition at line 78 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmin_theory(), and report(). |
|
|
Definition at line 76 of file 2/DCFsbistreamBase.h. Referenced by inheader(), mmin_this(), and report(). |
|
|
Definition at line 71 of file DCFsbistreamBase.h. |
|
|
Definition at line 72 of file DCFsbistreamBase.h. |
|
|
Definition at line 69 of file 2/DCFsbistreamBase.h. Referenced by inheader(), release(), and report(). |
|
|
Definition at line 68 of file 2/DCFsbistreamBase.h. Referenced by descr(), inheader(), open(), report(), and revision(). |
|
|
Definition at line 74 of file 2/DCFsbistreamBase.h. Referenced by inheader(), report(), and sbn(). |
|
|
Definition at line 67 of file 2/DCFsbistreamBase.h. Referenced by descr(), inheader(), open(), report(), and version(). |
1.3.6