DATRW++ library: seismic data I/O with multiple formats

◆ values()

void values ( const char &  out,
const char &  in 
)

Definition at line 63 of file binarytest.cc.

References datrw::binary::Fdouble, datrw::binary::Ffloat, datrw::binary::Ffree, datrw::binary::Finfo, datrw::binary::Fint, and datrw::binary::Fsrce.

Referenced by main().

64 {
65  cout << "written to file: " << int(out) << endl;
66  cout << "read from file: " << int(in) << endl;
67  if (out&::datrw::binary::Ffree)
68  { cout << "* flag set: free" << endl; }
69  if (out&::datrw::binary::Fsrce)
70  { cout << "* flag set: srce" << endl; }
71  if (out&::datrw::binary::Finfo)
72  { cout << "* flag set: info" << endl; }
73  if (out&::datrw::binary::Fdouble)
74  { cout << "* flag set: double" << endl; }
75  if (out&::datrw::binary::Ffloat)
76  { cout << "* flag set: float" << endl; }
77  if (out&::datrw::binary::Fint)
78  { cout << "* flag set: int" << endl; }
79 }
trace has INFO header
Definition: binary.h:81
trace has int data
Definition: binary.h:84
trace has SRCE header
Definition: binary.h:79
trace has float data
Definition: binary.h:83
trace has double data
Definition: binary.h:82
trace has FREE header
Definition: binary.h:80
Here is the caller graph for this function: