40 #ifndef DATRW_DATWRITE_H_VERSION 42 #define DATRW_DATWRITE_H_VERSION \ 43 "DATRW_DATWRITE_H V1.3" 47 #include<aff/series.h> 141 static void help(std::ostream& os=std::cout,
142 const char* name=
"idatsream");
156 const bool&
debug=
false);
218 { os.
setwid2(wid2);
return(os); }
221 { os.
setsrce(srce);
return(os); }
224 { os.
setinfo(info);
return(os); }
227 { os.
setfree(free);
return(os); }
240 #endif // DATRW_DATWRITE_H_VERSION (includeguard) odatstream(std::ostream &os, const Edatatype &datatype, const bool &handlesfilefree=false, const bool &handlestracefree=false, const bool &handlessrce=false, const bool &handlesinfo=false, const bool &debug=false)
constructor is protected: do not create an instance of this class
void abort_if_exists(const std::string &filename)
Edatatype seriestype() const
internal data types (prototypes)
bool hasinfo() const
info is available
void writeseries(const Tdseries::Tcoc &series)
write double data
void debug(const bool &debug)
set debug mode
void cleartraceheader()
clear trace header flags
Properties properties() const
query properties
void setwid2(const sff::WID2 &wid2)
void setdatatype(const Edatatype &daty)
bool hassrce() const
srce is available
static void help(std::ostream &os=std::cout, const char *name="idatsream")
print some info about data conversion.
void setfree(const sff::FREE &free)
sff::WID2 wid2() const
return WID2 data
std::ostream & Mos
output stream to be used by this class
bool haswid2() const
wid2 is available
void setinfo(const sff::INFO &info)
exception class declaration for libdatrwxx (prototypes)
sff::INFO info() const
return SRCE data
bool debug()
indicate debug mode
bool handlesfilefree() const
true if file FREE block can be handled
void flushfileheader()
flush file header to file
Root namespace of library.
sff::SRCE srce() const
return SRCE data
void setsrce(const sff::SRCE &srce)
bool handlesinfo() const
true if INFO data can be handled
sff::FREE free() const
return FREE data
virtual void writetrace(const Tdseries::Tcoc &series)
write double data
odatstream & operator<<(odatstream &os, const sff::WID2 &wid2)
describe data properties (prototypes)
virtual void writefileheader()
actually write the file header
bool Mdebug
global debug flag
bool handlessrce() const
true if SRCE data can be handled
virtual void writetrace(const Tfseries::Tcoc &series)
write single precision float data
bool hasfree() const
free is available
bool handlestracefree() const
true if trace FREE block can be handled
virtual void writetrace(const Tiseries::Tcoc &series)
write integer data