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


Public Member Functions | |
| virtual void | close () |
| int | finalstep () |
| void | finalstep (const int) |
| virtual bool | isopen () |
| MCFsbostreamBase (const string &descript="_", ostream &os=cout) | |
| virtual void | open () |
| virtual void | outheader () |
| virtual void | report (ostream &=cout) |
| void | set_author (const int author) |
| void | set_bplen (const int bplen_mpsizeb, const int bplen_coef, const int bplen_n, const int bplen_a) |
| void | set_cpart (const int cmin_this, const int cmax_this, const int cmin_exist, const int cmax_exist, const int cmin_theory, const int cmax_theory) |
| void | set_descript (const string &) |
| void | set_mpart (const int mmin_this, const int mmax_this, const int mmin_exist, const int mmax_exist, const int mmin_theory, const int mmax_theory) |
| void | set_sbn (const int sbn) |
| virtual | ~MCFsbostreamBase () |
Protected Attributes | |
| int | _arraydim |
| int | _author |
| int | _bplen_a |
| int | _bplen_coef |
| int | _bplen_mpsizeb |
| int | _bplen_n |
| int | _cmax_exist |
| int | _cmax_theory |
| int | _cmax_this |
| int | _cmin_exist |
| int | _cmin_theory |
| int | _cmin_this |
| int | _datatype_code |
| string | _descript |
| int | _finalstep |
| bool | _lockfinalstep |
| int | _mmax_exist |
| int | _mmax_theory |
| int | _mmax_this |
| int | _mmin_exist |
| int | _mmin_theory |
| int | _mmin_this |
| bool | _needheader |
| ostream * | _os |
| int | _release |
| int | _revision |
| int | _sbn |
| int | _version |
|
||||||||||||
|
Definition at line 96 of file MCFsbostreamBase.h. References MCF_CODE_UNKNOWN.
00097 : _version(0), _revision(2), _release(0), _author(0), _descript(descript), 00098 _arraydim(0), _sbn(0), 00099 _mmin_this(0), _mmax_this(31), _mmin_exist(0), _mmax_exist(31), 00100 _mmin_theory(0), _mmax_theory(31), 00101 // _cmin_this(0), _cmax_this(255), _cmin_exist(0), _cmax_exist(255), 00102 // _cmin_theory(0), _cmax_theory(255), 00103 _cmin_this(-16), _cmax_this(15), _cmin_exist(-16), _cmax_exist(15), 00104 _cmin_theory(-16), _cmax_theory(15), 00105 _bplen_mpsizeb(2), _bplen_coef(8), 00106 _datatype_code(MCF_CODE_UNKNOWN), 00107 _bplen_n(2), _bplen_a(2), 00108 _os(&os), 00109 _needheader(true), _lockfinalstep(false), _finalstep(-1) 00110 {} |
|
|
Definition at line 113 of file MCFsbostreamBase.h.
|
|
|
Reimplemented in MCFsbofstream< Rtmra_t >. Definition at line 98 of file MCFsbostreamBase.cpp. References isopen(). Referenced by MCFsbofstream< Rtmra_t >.close(), and MCFsbostream< Rtmra_t >.operator<<().
00099 {
00100 if ( isopen() ) {
00101 bytepack bp;
00102
00103 (*_os) << bp( 0, _bplen_mpsizeb );
00104 (*_os) << bp( 0, _bplen_mpsizeb ); // NULL mp
00105
00106 (*_os) << bp( -1, 4 ); // DON'T KNOW sbsizeb
00107
00108 (*_os) << bp( -1, 4 ); // DON'T KNOW mcfsizeb
00109
00110 // free-form postscript, usin to record finalsetp
00111 (*_os) << bp( _bplen_n+1, 4 );
00112 (*_os) << bp( _finalstep, _bplen_n );
00113 (*_os) << endl;
00114 }
00115 };
|
|
|
Definition at line 179 of file MCFsbostreamBase.h.
00179 { return _finalstep; };
|
|
|
Definition at line 173 of file MCFsbostreamBase.h.
00174 {
00175 _finalstep = finalstep;
00176 };
|
|
|
Reimplemented in MCFsbofstream< Rtmra_t >. Definition at line 182 of file MCFsbostreamBase.h. Referenced by close(), and MCFsbostream< Rtmra_t >.operator<<().
00182 { return (*_os).good(); }
|
|
|
Reimplemented in MCFsbofstream< Rtmra_t >. Definition at line 61 of file MCFsbostreamBase.h. Referenced by MCFsbostream< Rtmra_t >.operator<<().
00061 {}
|
|
|
Reimplemented in MCFsbofstream< Rtmra_t >. Definition at line 54 of file MCFsbostreamBase.cpp. Referenced by MCFsbostream< Rtmra_t >.operator<<(), and MCFsbofstream< Rtmra_t >.outheader().
00055 {
00056 bytepack bp;
00057 // MCF HEADER
00058 (*_os) << "MCF_____";
00059 (*_os) << bp( -1, 4 ); // CAN'T KNOW mcfsizeb YET
00060 (*_os) << bp( _version, 1 );
00061 (*_os) << bp( _revision, 1 );
00062 (*_os) << bp( _release, 1 );
00063 (*_os) << bp( _author, 1 );
00064 (*_os) << bp( int(_descript.size()), 1 );
00065 (*_os) << _descript;
00066 // MRAsb HEADER
00067 (*_os) << bp( -1, 4 ); // CAN'T KNOW sbsizeb YET
00068 (*_os) << bp( 1, 1 );
00069 (*_os) << bp( _arraydim, 1 );
00070 (*_os) << bp( _bplen_mpsizeb, 1 );
00071 (*_os) << bp( _bplen_coef, 1 );
00072 (*_os) << bp( _bplen_n, 1 );
00073 for( int d = 0; d < _arraydim; ++d ) {
00074 (*_os) << bp( _bplen_a, 1 );
00075 }
00076 (*_os) << bp( _sbn, 4 );
00077 (*_os) << bp( _mmin_this, 1 );
00078 (*_os) << bp( _mmax_this, 1 );
00079 (*_os) << bp( _mmin_exist, 1 );
00080 (*_os) << bp( _mmax_exist, 1 );
00081 (*_os) << bp( _mmin_theory, 1 );
00082 (*_os) << bp( _mmax_theory, 1 );
00083 (*_os) << bp( _cmin_this, 1 );
00084 (*_os) << bp( _cmax_this, 1 );
00085 (*_os) << bp( _cmin_exist, 1 );
00086 (*_os) << bp( _cmax_exist, 1 );
00087 (*_os) << bp( _cmin_theory, 1 );
00088 (*_os) << bp( _cmax_theory, 1 );
00089 (*_os) << bp( _datatype_code, 1 );
00090 (*_os) << bp( 3, 1 );
00091 (*_os) << bp( 0, 1 );
00092 (*_os) << bp( 3, 1 );
00093
00094 _needheader = false;
00095
00096 };
|
|
|
Definition at line 20 of file MCFsbostreamBase.cpp. Referenced by MCFsbofstream< Rtmra_t >.outheader().
00021 {
00022 os << "MCF REPORT version= " <<_version << endl;
00023 os << "MCF REPORT revision= " << _revision << endl;
00024 os << "MCF REPORT release= " << _release << endl;
00025 os << "MCF REPORT author= " << _author << endl;
00026 os << "MCF REPORT descript.size()= " << _descript.size() << endl;
00027 os << "MCF REPORT descript= " << _descript << endl;
00028
00029 os << "MCF REPORT grid_dim= " << 1 << endl;
00030 os << "MCF REPORT array_dim= " << _arraydim << endl;
00031 os << "MCF REPORT bplen_mpsizeb= " << _bplen_mpsizeb << endl;
00032 os << "MCF REPORT bplen_coef= " << _bplen_coef << endl;
00033 os << "MCF REPORT bplen_n= " << _bplen_n << endl;
00034 for( int d = 0; d < _arraydim; ++d ) {
00035 os << "MCF REPORT bplen_a[" << d << "]= " << _bplen_a << endl;
00036 }
00037
00038 os << "MCF REPORT sbn= " << _sbn << endl;
00039 os << "MCF REPORT mmin_this= " << _mmin_this << endl;
00040 os << "MCF REPORT mmax_this= " << _mmax_this << endl;
00041 os << "MCF REPORT mmin_exist= " << _mmin_exist << endl;
00042 os << "MCF REPORT mmax_exist= " << _mmax_exist << endl;
00043 os << "MCF REPORT mmin_theory= " << _mmin_theory << endl;
00044 os << "MCF REPORT mmax_theory= " << _mmax_theory << endl;
00045 os << "MCF REPORT cmin_this= " << _cmin_this << endl;
00046 os << "MCF REPORT cmax_this= " << _cmax_this << endl;
00047 os << "MCF REPORT cmin_exist= " << _cmin_exist << endl;
00048 os << "MCF REPORT cmax_exist= " << _cmax_exist << endl;
00049 os << "MCF REPORT cmin_theory= " << _cmin_theory << endl;
00050 os << "MCF REPORT cmax_theory= " << _cmax_theory << endl;
00051 os << "MCF REPORT datatype_code= " << _datatype_code << endl;
00052 };
|
|
|
Definition at line 119 of file MCFsbostreamBase.h.
00119 { _author = author; }
|
|
||||||||||||||||||||
|
Definition at line 161 of file MCFsbostreamBase.h.
00165 {
00166 _bplen_mpsizeb = bplen_mpsizeb;
00167 _bplen_coef = bplen_coef;
00168 _bplen_n = bplen_n;
00169 _bplen_a = bplen_a;
00170 }
|
|
||||||||||||||||||||||||||||
|
Definition at line 146 of file MCFsbostreamBase.h.
00151 {
00152 _cmin_this = cmin_this;
00153 _cmax_this = cmax_this;
00154 _cmin_exist = cmin_exist;
00155 _cmax_exist = cmax_exist;
00156 _cmin_theory = cmin_theory;
00157 _cmax_theory = cmax_theory;
00158 }
|
|
|
Definition at line 122 of file MCFsbostreamBase.h.
00123 {
00124 _descript = descript;
00125 };
|
|
||||||||||||||||||||||||||||
|
Definition at line 131 of file MCFsbostreamBase.h.
00136 {
00137 _mmin_this = mmin_this;
00138 _mmax_this = mmax_this;
00139 _mmin_exist = mmin_exist;
00140 _mmax_exist = mmax_exist;
00141 _mmin_theory = mmin_theory;
00142 _mmax_theory = mmax_theory;
00143 }
|
|
|
Definition at line 128 of file MCFsbostreamBase.h.
00128 { _sbn = sbn; }
|
|
|
Definition at line 70 of file MCFsbostreamBase.h. |
|
|
Definition at line 67 of file MCFsbostreamBase.h. |
|
|
Definition at line 85 of file MCFsbostreamBase.h. |
|
|
Definition at line 82 of file MCFsbostreamBase.h. |
|
|
Definition at line 81 of file MCFsbostreamBase.h. |
|
|
Definition at line 84 of file MCFsbostreamBase.h. |
|
|
Definition at line 78 of file MCFsbostreamBase.h. |
|
|
Definition at line 79 of file MCFsbostreamBase.h. |
|
|
Definition at line 77 of file MCFsbostreamBase.h. |
|
|
Definition at line 78 of file MCFsbostreamBase.h. |
|
|
Definition at line 79 of file MCFsbostreamBase.h. |
|
|
Definition at line 77 of file MCFsbostreamBase.h. |
|
|
Definition at line 83 of file MCFsbostreamBase.h. |
|
|
Definition at line 68 of file MCFsbostreamBase.h. |
|
|
Definition at line 92 of file MCFsbostreamBase.h. |
|
|
Definition at line 91 of file MCFsbostreamBase.h. |
|
|
Definition at line 74 of file MCFsbostreamBase.h. |
|
|
Definition at line 75 of file MCFsbostreamBase.h. |
|
|
Definition at line 73 of file MCFsbostreamBase.h. |
|
|
Definition at line 74 of file MCFsbostreamBase.h. |
|
|
Definition at line 75 of file MCFsbostreamBase.h. |
|
|
Definition at line 73 of file MCFsbostreamBase.h. |
|
|
Definition at line 89 of file MCFsbostreamBase.h. |
|
|
Definition at line 87 of file MCFsbostreamBase.h. |
|
|
Definition at line 66 of file MCFsbostreamBase.h. |
|
|
Definition at line 65 of file MCFsbostreamBase.h. |
|
|
Definition at line 71 of file MCFsbostreamBase.h. |
|
|
Definition at line 64 of file MCFsbostreamBase.h. |
1.3.6