Commit 14de5ab8 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

tested SU header size

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/branches/libdatrwxx.su
SVN Revision: 3437
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 111837bb
......@@ -215,7 +215,7 @@ PACKAGE=libdatreadxx
# ---------
sactest hpmotest mseedtest pdastest tfasciitest\
tsofttest sfftest: %: tests/%.o libdatreadxx.a
tsofttest sfftest sutest: %: tests/%.o libdatreadxx.a
$(CXX) $(FLAGS) -o $@ $< -I$(LOCINCLUDEDIR) \
-ldatreadxx -lsffxx -lgsexx -ltsxx -ltfxx -laff -ltime++ \
-L$(LOCLIBDIR)
......
......@@ -40,7 +40,7 @@ namespace datread {
* Some fields are described in detail in the detailed section of the
* field.
*/
struct SEGY {
struct TraceHeaderStruct {
int tracl; /**< Trace sequence number within line.
......
......@@ -29,6 +29,17 @@ namespace datread {
namespace su {
/*! \brief handle a complete SU trace with header and data
*
* \todo
* Think about passing header fields which cannot be represented in the
* SFF API through the FREE block. Upon writing the FREE block can be
* scanned for such fields. They could be set in the header to be
* written and be deleted from the FREE block before writing.
*/
class SUtrace {
}; // class SUtrace
} // namespace su
} // namespace datread
......
......@@ -23,6 +23,7 @@
#include <iostream>
#include <tfxx/commandline.h>
#include <datreadxx/suheaderstruct.h>
using std::cout;
using std::cerr;
......@@ -95,6 +96,9 @@ int main(int iargc, char* argv[])
// dummy operation: print rest of command line
while (cmdline.extra()) { cout << cmdline.next() << endl; }
cout << "size of TraceHeaderStruct " <<
sizeof(datread::su::TraceHeaderStruct) << endl;
}
/* ----- END OF sutest.cc ----- */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment