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

◆ sff_select_output_format__()

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

select format for output

Definition at line 90 of file fapid_sff_select_format.cc.

References fapidxx::ostreammanager, fapidxx::OFileUnits::setformat(), and fapidxx::stringfromfstring().

92 {
93  std::string formatstring=stringfromfstring(formatid, formatid_len);
94  *ierr=0;
95  try {
96  ostreammanager.setformat(formatstring);
97  } catch (datrw::Exception) {
98  *ierr=1;
99  }
100  return(0);
101 } // int sff_select_output_format__
void setformat(const std::string &format)
set file format to be used upon file open
Definition: fileunit.cc:192
::fapidxx::OFileUnits ostreammanager
the global ostream manager
Definition: fileunit.cc:51
std::string stringfromfstring(char *fstring, ftnlen slen)
create a C++ string from a Fortran string
Definition: helper.cc:51
Here is the call graph for this function: