conv/many suite: convert (m)any seismic data format(s)

◆ writeheaderhr()

void writeheaderhr ( std::ostream &  os,
const Header header 
)

Definition at line 107 of file any2ascii.cc.

References ANY2ASCII_VERSION, Header::filefree, Header::filename, Header::hasfilefree, Header::hasinfo, Header::hassrce, Header::hastracefree, Header::info, Header::itrace, Header::srce, Header::tracefree, and Header::wid2.

Referenced by main().

108 {
109  os << ANY2ASCII_VERSION << endl;
110  os << "input file: " << header.filename << endl;
111  os << "input trace: " << header.itrace << endl << endl;
112  os << "file header: " << endl;
113  if (header.hasfilefree) { os << header.filefree << endl; }
114  if (header.hassrce) { os << header.srce.line() << endl << endl;; }
115  os << "trace header: " << endl;
116  os << header.wid2.line() << endl;
117  if (header.hastracefree) { os << header.tracefree << endl; }
118  if (header.hasinfo) { os << header.info.line() << endl << endl;; }
119 }
sff::WID2 wid2
Definition: any2ascii.cc:76
sff::FREE tracefree
Definition: any2ascii.cc:75
sff::FREE filefree
Definition: any2ascii.cc:75
bool hasinfo
Definition: any2ascii.cc:74
bool hassrce
Definition: any2ascii.cc:74
#define ANY2ASCII_VERSION
Definition: any2ascii.cc:45
sff::INFO info
Definition: any2ascii.cc:77
sff::SRCE srce
Definition: any2ascii.cc:78
bool hasfilefree
Definition: any2ascii.cc:74
std::string filename
Definition: any2ascii.cc:80
bool hastracefree
Definition: any2ascii.cc:74
int itrace
Definition: any2ascii.cc:79
Here is the caller graph for this function: