Fortran SFF API to data I/O streams in C++
fapid_sff_helper_decode_wid2.cc
Go to the documentation of this file.
1 
34 #define TF_FAPID_SFF_HELPER_DECODE_WID2_CC_VERSION \
35  "TF_FAPID_SFF_HELPER_DECODE_WID2_CC V1.0"
36 
37 #include <fapidxx/fapidsff.h>
38 #include <fapidxx/helper.h>
39 #include <fapidxx/wid2container.h>
40 #include <fapidxx/error.h>
41 
42 int sff_helper_decode_wid2__(char *wid2in, char *wid2out,
43  ftnlen wid2in_len, ftnlen wid2out_len)
44 {
45  fapidxx::WID2container wid2(wid2in, wid2in_len);
46  fapidxx::fillfstring(wid2.wid2.line(), wid2out, wid2out_len);
47  return(0);
48 } // int sff_helper_decode_wid2__
49 
50 /* ----- END OF fapid_sff_helper_decode_wid2.cc ----- */
int sff_helper_decode_wid2__(char *wid2in, char *wid2out, ftnlen wid2in_len, ftnlen wid2out_len)
decode a WID2 character sequence
This is the interface usually expected by Fortran programs linking to libsff.a (prototypes) ...
sff::WID2 wid2
WID2 data.
This struct is used to pass WID2 line data within libfapidxx.
Definition: wid2container.h:62
container for WID2 data (prototypes)
void fillfstring(const std::string &s, char *fstring, ftnlen slen)
fill a Fortran string with a C++ string
Definition: helper.cc:60
exceptions and error handling macros (prototypes)
long int ftnlen
Fortran string size type.
Definition: fapidsff.h:70
some helper functions (prototypes)