Fortran SFF API to data I/O streams in C++

◆ sff_select_input_format__()

int sff_select_input_format__ ( char *  formatid,
integer ierr,
ftnlen  formatid_len 
)

select format for input

Definition at line 71 of file fapid_sff_select_format.cc.

References fapidxx::istreammanager, fapidxx::IFileUnits::setformat(), and fapidxx::stringfromfstring().

73 {
74  std::string formatstring=stringfromfstring(formatid, formatid_len);
75  *ierr=0;
76  try {
77  istreammanager.setformat(formatstring);
78  } catch (datrw::Exception) {
79  *ierr=1;
80  }
81  return(0);
82 } // int sff_select_input_format__
void setformat(const std::string &format)
set file format to be used upon file open
Definition: fileunit.cc:121
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
Definition: helper.cc:51
::fapidxx::IFileUnits istreammanager
the global istream manager
Definition: fileunit.cc:48
Here is the call graph for this function: