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

◆ read()

void sff::FileHeader::read ( std::istream &  is,
const bool &  debug = false 
)

Definition at line 815 of file sffxx.cc.

References sff::STAT::hasfree, sff::STAT::hassrce, Mfree, Msrce, Mstat, sff::STAT::read(), sff::FREE::read(), and sff::SRCE::read().

Referenced by FileHeader(), and sff::operator>>().

816  {
817  // reading the FREE block first matches the order of header elements as
818  // written by sff_WOpenFS in libstuff.f
819  Mstat.read(is, debug);
820  if (Mstat.hasfree)
821  {
822  Mfree.read(is, debug);
823  if (debug)
824  { std::cerr << "DEBUG (FileHeader::read): file FREE read" << std::endl; }
825  }
826  if (Mstat.hassrce)
827  {
828  Msrce.read(is, debug);
829  if (debug)
830  { std::cerr << "DEBUG (FileHeader::read): SRCE line read" << std::endl; }
831  }
832  if (debug)
833  { std::cerr << "DEBUG (FileHeader::read): finished" << std::endl; }
834  }
void read(std::istream &is, const bool &debug=false)
Definition: sffxx.cc:236
void read(std::istream &is, const bool &debug=false)
Definition: sffxx.cc:576
FREE Mfree
Definition: sffxx.h:262
SRCE Msrce
Definition: sffxx.h:263
STAT Mstat
Definition: sffxx.h:261
void read(std::istream &is, const bool &debug=false)
Definition: sffxx.cc:377
bool hasfree
Definition: sffxx.h:149
bool hassrce
Definition: sffxx.h:150
Here is the call graph for this function:
Here is the caller graph for this function: