Fortran SFF API to data I/O streams in C++
fapidxx::WID2container Struct Reference

This struct is used to pass WID2 line data within libfapidxx. More...

#include <wid2container.h>

Collaboration diagram for fapidxx::WID2container:

Classes

struct  WID2struct
 This struct ist used by fapidxx::WID2container to store WID2 line data. More...
 

Public Member Functions

void encode (char *fstring, ftnlen slen) const
 encode data into a character string depending on wasascii flag More...
 
void encodeascii (char *fstring, ftnlen slen) const
 encode data into a standard SFF character string More...
 
void encodebinary (char *fstring, ftnlen slen) const
 encode data into a binary character string More...
 
void setwid2 (const std::string &line)
 fill data fields from a conventional WID2 line More...
 
void setwid2 (char *fstring, ftnlen slen)
 fill data fields from a character string More...
 
 WID2container (const std::string &line)
 construct from C++ string More...
 
 WID2container (char *fstring, ftnlen slen)
 construct from Fortran character sequence More...
 
 WID2container (const ::sff::WID2 &iwid2)
 construct from an SFF WID2 container More...
 

Public Attributes

bool wasascii
 true, if original data was ASCII encoded More...
 
sff::WID2 wid2
 WID2 data. More...
 

Detailed Description

This struct is used to pass WID2 line data within libfapidxx.

The WID2 line character string used in libsff is not able to hold the full content of an ::sff::WID2 structure without loss of information. Since libfapidxx provides interfaces to other data formats than SFF which are able to represent the full ::sff::WID2 structure content in their trace headers, we use the fapidxx::WID2container to pass WID2 data internally.

fapidxx::WID2container supports handling (reading, writing, encoding, decoding of WID2). Instructions on application of fapidxx::WID2container are given in section How WID2 data is handled internally

See also
How function sff_PrepWid2 encodes WID2 line data and How WID2 data is handled internally

Definition at line 62 of file wid2container.h.


The documentation for this struct was generated from the following files: