SFF++ library: reading and writing SFF from C++

◆ line()

std::string sff::INFO::line ( ) const

Definition at line 754 of file sffxx.cc.

References sff::coosysID(), cs, cx, cy, cz, LINEID, and nstacks.

Referenced by test_line_functions(), and sff::TraceHeader::writetrailer().

755  {
756  char charline[60];
757  sprintf(charline, "%-4s %1c %15.6f%15.6f%15.6f %4i\n",
758  INFO::LINEID,
759  coosysID(cs), cx, cy, cz, nstacks);
760  std::string retval(charline);
761  return(retval);
762  } // std::string INFO::line() const
char coosysID(const Ecoosys &csid)
Definition: sffxx.cc:145
double cy
Definition: sffxx.h:202
double cx
Definition: sffxx.h:202
double cz
Definition: sffxx.h:202
static const char *const LINEID
Definition: sffxx.h:194
Ecoosys cs
Definition: sffxx.h:201
int nstacks
Definition: sffxx.h:203
Here is the call graph for this function:
Here is the caller graph for this function: