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

DCFsbostreamBase Class Reference

#include <DCFsbostreamBase.h>

Inheritance diagram for DCFsbostreamBase:

Inheritance graph
[legend]
Collaboration diagram for DCFsbostreamBase:

Collaboration graph
[legend]

Public Member Functions

int author ()
void author (const int)
int blocknum ()
void blocknum (const int)
int bplen_n ()
void bplen_n (const int)
int bplen_sizeb ()
void bplen_sizeb (const int)
virtual void close ()
virtual void close ()
 DCFsbostreamBase (const string &descript="_", ostream &os=cout)
 DCFsbostreamBase (const string &="_\0", ostream &os=cout)
virtual void descr (ostream &=cout)
string & descript ()
void descript (const string &)
int encsizeb ()
void encsizeb (const int)
int enctype ()
void enctype (const int)
int finalstep ()
void finalstep (const int)
int finalstep ()
void finalstep (const int)
virtual bool isopen ()
virtual bool isopen ()
int mmax ()
void mmax (const int)
int mthis0 ()
void mthis0 (const int)
int mthis1 ()
void mthis1 (const int)
virtual void open ()
virtual void open ()
virtual void outheader ()
virtual void outheader ()
virtual void report (ostream &=cout)
int revision ()
void revision (const int)
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)
int version ()
void version (const int)
 ~DCFsbostreamBase ()

Protected Attributes

int _arraydim
int _author
int _blocknum
int _bplen_a
int _bplen_coef
int _bplen_mpsizeb
int _bplen_n
int _bplen_sizeb
int _cmax_exist
int _cmax_theory
int _cmax_this
int _cmin_exist
int _cmin_theory
int _cmin_this
int _datatype_code
string _descript
int _encsizeb
int _enctype
int _finalstep
int _lendescript
bool _lockfinalstep
int _mmax
int _mmax_exist
int _mmax_theory
int _mmax_this
int _mmin_exist
int _mmin_theory
int _mmin_this
int _mthis0
int _mthis1
bool _needheader
ostream * _os
ostream * _os
int _release
int _revision
int _sbn
int _version

Constructor & Destructor Documentation

DCFsbostreamBase::DCFsbostreamBase const string &  = "_\0",
ostream &  os = cout
 

Definition at line 16 of file DCFsbostreamBase.cpp.

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     _os(&os),
00022     _needheader(true), _lockfinalstep(false), _finalstep(-1)
00023 {
00024    _lendescript = descript.size();
00025    _descript = descript;
00026 };

DCFsbostreamBase.DCFsbostreamBase const string &  descript = "_",
ostream &  os = cout
 

DCFsbostreamBase::~DCFsbostreamBase  ) 
 

Definition at line 111 of file 2/DCFsbostreamBase.h.

References _os.

00112 { 
00113    if ( _os != 0 ) { delete _os; _os = 0; } 
00114 }


Member Function Documentation

int DCFsbostreamBase::author  ) 
 

Definition at line 102 of file DCFsbostreamBase.h.

00102 { return _author; };

void DCFsbostreamBase::author const  int  ) 
 

Definition at line 99 of file DCFsbostreamBase.h.

00099 { _author = author; };

int DCFsbostreamBase::blocknum  ) 
 

Definition at line 117 of file DCFsbostreamBase.h.

00117 { return _blocknum; };

void DCFsbostreamBase::blocknum const  int  ) 
 

Definition at line 114 of file DCFsbostreamBase.h.

00114 { _blocknum = blocknum; };

int DCFsbostreamBase::bplen_n  ) 
 

Definition at line 155 of file DCFsbostreamBase.h.

00155 { return _bplen_n; };

void DCFsbostreamBase::bplen_n const  int  ) 
 

Definition at line 152 of file DCFsbostreamBase.h.

00152 { _bplen_n = bplen_n; };

int DCFsbostreamBase::bplen_sizeb  ) 
 

Definition at line 149 of file DCFsbostreamBase.h.

00149 { return _bplen_sizeb; };

void DCFsbostreamBase::bplen_sizeb const  int  ) 
 

Definition at line 143 of file DCFsbostreamBase.h.

00144 {
00145    _bplen_sizeb = bplen_sizeb;
00146 };

virtual void DCFsbostreamBase.close  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, DCFsbostream< Data_t >, DCFsbofstream< Data_t >, and DCFsbostream< Rtmra_t >.

void DCFsbostreamBase::close  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, DCFsbostream< Data_t >, DCFsbofstream< Data_t >, and DCFsbostream< Rtmra_t >.

Definition at line 59 of file DCFsbostreamBase.h.

00059 {}

void DCFsbostreamBase::descr ostream &  = cout  )  [virtual]
 

Reimplemented in DCFsbostream< Data_t >, and DCFsbostream< Rtmra_t >.

Definition at line 28 of file DCFsbostreamBase.cpp.

Referenced by DCFsbostream< Data_t >.descr().

00029 {
00030    os << "DCF DESCR version= " <<_version << endl;
00031    os << "DCF DESCR revision= " << _revision << endl;
00032    os << "DCF DESCR author= " << _author << endl;
00033    os << "DCF DESCR lendescript= " << _lendescript << endl;
00034    os << "DCF DESCR descript= " << _descript << endl;
00035    os << "DCF DESCR blocknum= " << _blocknum << endl;
00036    os << "DCF DESCR mthis0= " << _mthis0 << endl;
00037    os << "DCF DESCR mthis1= " << _mthis1 << endl;
00038    os << "DCF DESCR mmax= " << _mmax << endl;
00039    os << "DCF DESCR bplen_sizeb= " << _bplen_sizeb << endl;
00040    os << "DCF DESCR bplen_n= " << _bplen_n << endl;
00041 
00042    os << "DCF DESCR enctype= " << _enctype << endl;
00043    os << "DCF DESCR encsizeb= " << _encsizeb << endl;
00044 };

string & DCFsbostreamBase::descript  ) 
 

Definition at line 111 of file DCFsbostreamBase.h.

Referenced by DCFsbofstream< Data_t >.filenamebase().

00111 { return _descript; };

void DCFsbostreamBase::descript const string &   ) 
 

Definition at line 104 of file DCFsbostreamBase.h.

00105 {
00106    _lendescript = descript.size();
00107    _descript = descript;
00108 };

int DCFsbostreamBase::encsizeb  ) 
 

Definition at line 167 of file DCFsbostreamBase.h.

00167 { return _encsizeb; };

void DCFsbostreamBase::encsizeb const  int  ) 
 

Definition at line 164 of file DCFsbostreamBase.h.

00164 { _encsizeb = encsizeb; };

int DCFsbostreamBase::enctype  ) 
 

Definition at line 161 of file DCFsbostreamBase.h.

00161 { return _enctype; };

void DCFsbostreamBase::enctype const  int  ) 
 

Definition at line 158 of file DCFsbostreamBase.h.

00158 { _enctype = enctype; };

int DCFsbostreamBase.finalstep  ) 
 

void DCFsbostreamBase.finalstep const  int  ) 
 

int DCFsbostreamBase::finalstep  ) 
 

Definition at line 176 of file DCFsbostreamBase.h.

00176 { return _finalstep; };

void DCFsbostreamBase::finalstep const  int  ) 
 

Definition at line 170 of file DCFsbostreamBase.h.

00171 { 
00172    _finalstep = finalstep; 
00173 };

virtual bool DCFsbostreamBase.isopen  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, and DCFsbofstream< Data_t >.

bool DCFsbostreamBase::isopen  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, and DCFsbofstream< Data_t >.

Definition at line 179 of file DCFsbostreamBase.h.

Referenced by DCFsbostream< Data_t >.close(), DCFsbostream< Rtmra_t >.operator<<(), and DCFsbostream< Data_t >.operator<<().

00179 { return (*_os).good(); }

int DCFsbostreamBase::mmax  ) 
 

Definition at line 140 of file DCFsbostreamBase.h.

00140 { return _mmax; };

void DCFsbostreamBase::mmax const  int  ) 
 

Definition at line 132 of file DCFsbostreamBase.h.

References mthis0(), and mthis1().

00133 { 
00134    _mmax=mmax; 
00135    mthis0(0);
00136    mthis1(mmax);
00137 };

int DCFsbostreamBase::mthis0  ) 
 

Definition at line 123 of file DCFsbostreamBase.h.

Referenced by mmax().

00123 { return _mthis0; };

void DCFsbostreamBase::mthis0 const  int  ) 
 

Definition at line 120 of file DCFsbostreamBase.h.

00120 { _mthis0 = mthis0; };

int DCFsbostreamBase::mthis1  ) 
 

Definition at line 129 of file DCFsbostreamBase.h.

Referenced by mmax().

00129 { return _mthis1; };

void DCFsbostreamBase::mthis1 const  int  ) 
 

Definition at line 126 of file DCFsbostreamBase.h.

00126 { _mthis1 = mthis1; };

virtual void DCFsbostreamBase.open  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, and DCFsbofstream< Data_t >.

Definition at line 61 of file 2/DCFsbostreamBase.h.

00061 {}

virtual void DCFsbostreamBase.open  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, and DCFsbofstream< Data_t >.

Definition at line 58 of file DCFsbostreamBase.h.

Referenced by DCFsbostream< Rtmra_t >.operator<<(), and DCFsbostream< Data_t >.operator<<().

00058 {}

virtual void DCFsbostreamBase.outheader  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, DCFsbostream< Data_t >, DCFsbofstream< Data_t >, and DCFsbostream< Rtmra_t >.

void DCFsbostreamBase::outheader  )  [virtual]
 

Reimplemented in DCFsbofstream< Data_t >, DCFsbostream< Data_t >, DCFsbofstream< Data_t >, and DCFsbostream< Rtmra_t >.

Definition at line 46 of file DCFsbostreamBase.cpp.

References _needheader.

Referenced by DCFsbostream< Data_t >.outheader().

00047 {
00048    bytepack bp;
00049 
00050    (*_os) << "DCFsb_";
00051    (*_os) << bp(_version,1);
00052    (*_os) << bp(_revision,1);
00053    (*_os) << bp(_author,2);
00054    (*_os) << bp(_lendescript,1);
00055    (*_os) << _descript;
00056    (*_os) << bp(_blocknum,2);
00057    (*_os) << bp(_mthis0,1);
00058    (*_os) << bp(_mthis1,1);
00059    (*_os) << bp(_mmax,1);
00060    (*_os) << bp(_bplen_sizeb,1);
00061    (*_os) << bp(_bplen_n,1);
00062 
00063    (*_os) << bp(_enctype,1);
00064    (*_os) << bp(_encsizeb,1);
00065 
00066    _needheader = false;
00067 };

void DCFsbostreamBase::report ostream &  = cout  )  [virtual]
 

Definition at line 20 of file 2/DCFsbostreamBase.cpp.

00021 {
00022    os << "DCF REPORT version= " <<_version << endl;
00023    os << "DCF REPORT revision= " << _revision << endl;
00024    os << "DCF REPORT release= " << _release << endl;
00025    os << "DCF REPORT author= " << _author << endl;
00026    os << "DCF REPORT descript.size()= " << _descript.size() << endl;
00027    os << "DCF REPORT descript= " << _descript << endl;
00028 
00029    os << "DCF REPORT grid_dim= " << 1 << endl;
00030    os << "DCF REPORT array_dim= " << _arraydim << endl;
00031    os << "DCF REPORT bplen_mpsizeb= " << _bplen_mpsizeb << endl;
00032    os << "DCF REPORT bplen_coef= " << _bplen_coef << endl;
00033    os << "DCF REPORT bplen_n= " << _bplen_n << endl;
00034    for( int d = 0; d < _arraydim; ++d ) {
00035       os << "DCF REPORT bplen_a[" << d << "]= " << _bplen_a << endl;
00036    }
00037 
00038    os << "DCF REPORT sbn= " << _sbn << endl;
00039    os << "DCF REPORT mmin_this= " << _mmin_this << endl;
00040    os << "DCF REPORT mmax_this= " << _mmax_this << endl;
00041    os << "DCF REPORT mmin_exist= " << _mmin_exist << endl;
00042    os << "DCF REPORT mmax_exist= " << _mmax_exist << endl;
00043    os << "DCF REPORT mmin_theory= " << _mmin_theory << endl;
00044    os << "DCF REPORT mmax_theory= " << _mmax_theory << endl;
00045    os << "DCF REPORT cmin_this= " << _cmin_this << endl;
00046    os << "DCF REPORT cmax_this= " << _cmax_this << endl;
00047    os << "DCF REPORT cmin_exist= " << _cmin_exist << endl;
00048    os << "DCF REPORT cmax_exist= " << _cmax_exist << endl;
00049    os << "DCF REPORT cmin_theory= " << _cmin_theory << endl;
00050    os << "DCF REPORT cmax_theory= " << _cmax_theory << endl;
00051    os << "DCF REPORT datatype_code= " << _datatype_code << endl;
00052 };

int DCFsbostreamBase::revision  ) 
 

Definition at line 96 of file DCFsbostreamBase.h.

00096 { return _revision; };

void DCFsbostreamBase::revision const  int  ) 
 

Definition at line 93 of file DCFsbostreamBase.h.

00093 { _revision = revision; };

void DCFsbostreamBase::set_author const int  author  ) 
 

Definition at line 117 of file 2/DCFsbostreamBase.h.

00117 { _author = author; }

void DCFsbostreamBase::set_bplen const int  bplen_mpsizeb,
const int  bplen_coef,
const int  bplen_n,
const int  bplen_a
 

Definition at line 159 of file 2/DCFsbostreamBase.h.

00163 {
00164   _bplen_mpsizeb = bplen_mpsizeb;
00165   _bplen_coef = bplen_coef;
00166   _bplen_n = bplen_n;
00167   _bplen_a = bplen_a;
00168 }

void DCFsbostreamBase::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
 

Definition at line 144 of file 2/DCFsbostreamBase.h.

00149 {
00150   _cmin_this = cmin_this;
00151   _cmax_this = cmax_this;
00152   _cmin_exist = cmin_exist;
00153   _cmax_exist = cmax_exist;
00154   _cmin_theory = cmin_theory;
00155   _cmax_theory = cmax_theory;
00156 }

void DCFsbostreamBase::set_descript const string &   ) 
 

Definition at line 120 of file 2/DCFsbostreamBase.h.

00121 {
00122    _descript = descript;
00123 };

void DCFsbostreamBase::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
 

Definition at line 129 of file 2/DCFsbostreamBase.h.

00134 {
00135   _mmin_this = mmin_this;
00136   _mmax_this = mmax_this;
00137   _mmin_exist = mmin_exist;
00138   _mmax_exist = mmax_exist;
00139   _mmin_theory = mmin_theory;
00140   _mmax_theory = mmax_theory;
00141 }

void DCFsbostreamBase::set_sbn const int  sbn  ) 
 

Definition at line 126 of file 2/DCFsbostreamBase.h.

00126 { _sbn = sbn; }

int DCFsbostreamBase::version  ) 
 

Definition at line 90 of file DCFsbostreamBase.h.

00090 { return _version; };

void DCFsbostreamBase::version const  int  ) 
 

Definition at line 87 of file DCFsbostreamBase.h.

00087 { _version = version; };


Field Documentation

int DCFsbostreamBase._arraydim [protected]
 

Definition at line 70 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase::_author [protected]
 

Definition at line 67 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._blocknum [protected]
 

Definition at line 68 of file DCFsbostreamBase.h.

int DCFsbostreamBase._bplen_a [protected]
 

Definition at line 85 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._bplen_coef [protected]
 

Definition at line 82 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._bplen_mpsizeb [protected]
 

Definition at line 81 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase::_bplen_n [protected]
 

Definition at line 84 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._bplen_sizeb [protected]
 

Definition at line 72 of file DCFsbostreamBase.h.

int DCFsbostreamBase._cmax_exist [protected]
 

Definition at line 78 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._cmax_theory [protected]
 

Definition at line 79 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._cmax_this [protected]
 

Definition at line 77 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._cmin_exist [protected]
 

Definition at line 78 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._cmin_theory [protected]
 

Definition at line 79 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._cmin_this [protected]
 

Definition at line 77 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._datatype_code [protected]
 

Definition at line 83 of file 2/DCFsbostreamBase.h.

string DCFsbostreamBase::_descript [protected]
 

Definition at line 68 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._encsizeb [protected]
 

Definition at line 76 of file DCFsbostreamBase.h.

int DCFsbostreamBase._enctype [protected]
 

Definition at line 75 of file DCFsbostreamBase.h.

int DCFsbostreamBase::_finalstep [protected]
 

Definition at line 92 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._lendescript [protected]
 

Definition at line 66 of file DCFsbostreamBase.h.

bool DCFsbostreamBase::_lockfinalstep [protected]
 

Definition at line 91 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmax [protected]
 

Definition at line 71 of file DCFsbostreamBase.h.

int DCFsbostreamBase._mmax_exist [protected]
 

Definition at line 74 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmax_theory [protected]
 

Definition at line 75 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmax_this [protected]
 

Definition at line 73 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmin_exist [protected]
 

Definition at line 74 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmin_theory [protected]
 

Definition at line 75 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mmin_this [protected]
 

Definition at line 73 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._mthis0 [protected]
 

Definition at line 69 of file DCFsbostreamBase.h.

int DCFsbostreamBase._mthis1 [protected]
 

Definition at line 70 of file DCFsbostreamBase.h.

bool DCFsbostreamBase::_needheader [protected]
 

Definition at line 89 of file 2/DCFsbostreamBase.h.

Referenced by outheader().

ostream* DCFsbostreamBase._os [protected]
 

Definition at line 87 of file 2/DCFsbostreamBase.h.

ostream* DCFsbostreamBase._os [protected]
 

Definition at line 78 of file DCFsbostreamBase.h.

Referenced by ~DCFsbostreamBase().

int DCFsbostreamBase._release [protected]
 

Definition at line 66 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase::_revision [protected]
 

Definition at line 65 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase._sbn [protected]
 

Definition at line 71 of file 2/DCFsbostreamBase.h.

int DCFsbostreamBase::_version [protected]
 

Definition at line 64 of file 2/DCFsbostreamBase.h.


The documentation for this class was generated from the following files:
Generated on Mon May 31 21:41:06 2004 for SR2k4 Assembler by doxygen 1.3.6