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

◆ encodeascii()

void fapidxx::WID2container::encodeascii ( char *  fstring,
ftnlen  slen 
) const

encode data into a standard SFF character string

ascii encode WID2 data in character sequence

This function is prepared to encode WID2 data in standard SFF ascii encoding in a character sequence.

Parameters
fstringWID2 line character sequence produced from WID2 data in member data WID2container::wid2; this is the return value of the function (output value)
slenlength of character array fstring

Definition at line 166 of file wid2container.cc.

References fapidxx::fillfstring(), and wid2.

Referenced by encode().

167  {
168  fapidxx::fillfstring(this->wid2.line(), fstring, slen);
169  } // void WID2container::encodeascii(char *fstring, ftnlen slen)
sff::WID2 wid2
WID2 data.
void fillfstring(const std::string &s, char *fstring, ftnlen slen)
fill a Fortran string with a C++ string
Definition: helper.cc:60
Here is the call graph for this function:
Here is the caller graph for this function: