Commit 697010af authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding

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/trunk
SVN Revision: 1594
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent dd401f80
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.12 2004-12-20 16:15:39 tforb Exp $
# $Id: Makefile,v 1.13 2004-12-21 09:34:05 tforb Exp $
#
# Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)
#
......@@ -24,7 +24,7 @@ LIBSRC=$(wildcard *.cc */*.cc)
LIBSRC=datread.cc bonjer/bonjer.cc bonjer/readbonjer.cc readany.cc error.cc \
pdas/pdas.cc pdas/pdasread.cc tests/pdastest.cc \
sff/sff.cc mseed/mseedread.cc mseed/mseed.cc tests/mseedtest.cc \
hpmo/hpmo.cc hpmo/readhpmo.cc
hpmo/hpmo.cc hpmo/readhpmo.cc tests/hpmotest.cc
INCINSTALLPATH=$(LOCINCLUDEDIR)/datreadxx
LIBINSTALLPATH=$(LOCLIBDIR)
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: readhpmo.cc,v 1.3 2004-12-21 09:28:22 tforb Exp $
* $Id: readhpmo.cc,v 1.4 2004-12-21 09:34:05 tforb Exp $
* \author Thomas Forbriger
* \date 31/03/2004
*
......@@ -19,7 +19,7 @@
#define DATREAD_READHPMO_CC_VERSION \
"DATREAD_READHPMO_CC V1.0 "
#define DATREAD_READHPMO_CC_CVSID \
"$Id: readhpmo.cc,v 1.3 2004-12-21 09:28:22 tforb Exp $"
"$Id: readhpmo.cc,v 1.4 2004-12-21 09:34:05 tforb Exp $"
#include <datreadxx/readhpmo.h>
......@@ -27,8 +27,11 @@ namespace datread {
namespace hpmo {
void Header::readheader(std::istream& is)
void Header::readheader(std::istream& is, const bool& verbose)
{
std::getline(is, this->Mline);
std::string timestring;
timestring=Mline.substr.
} // Header::readheader(std::istream& is)
} // namespace hpmo
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: readhpmo.h,v 1.4 2004-12-21 09:28:22 tforb Exp $
* $Id: readhpmo.h,v 1.5 2004-12-21 09:34:05 tforb Exp $
* \author Thomas Forbriger
* \date 31/03/2004
*
......@@ -23,7 +23,7 @@
#define DATREAD_READHPMO_H_VERSION \
"DATREAD_READHPMO_H V1.0 "
#define DATREAD_READHPMO_H_CVSID \
"$Id: readhpmo.h,v 1.4 2004-12-21 09:28:22 tforb Exp $"
"$Id: readhpmo.h,v 1.5 2004-12-21 09:34:05 tforb Exp $"
#include<iostream>
#include<string>
......@@ -35,8 +35,9 @@ namespace datread {
class Header {
public:
Header(std::istream& is) { this->readheader(is); }
void readheader(std::istream& is);
Header(std::istream& is, const bool& verbose)
{ this->readheader(is, verbose); }
void readheader(std::istream& is, const bool& verbose);
libtime::TAbsoluteTime time() const { return(Mtime); }
int errorflag() const { return(Merrorflag); }
std::string errorstring() const;
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: hpmotest.cc,v 1.1 2004-12-21 09:28:24 tforb Exp $
* $Id: hpmotest.cc,v 1.2 2004-12-21 09:34:06 tforb Exp $
* \author Thomas Forbriger
* \date 21/12/2004
*
......@@ -19,15 +19,23 @@
#define HPMOTEST_VERSION \
"HPMOTEST V1.0 test hpmo reading functions"
#define HPMOTEST_CVSID \
"$Id: hpmotest.cc,v 1.1 2004-12-21 09:28:24 tforb Exp $"
"$Id: hpmotest.cc,v 1.2 2004-12-21 09:34:06 tforb Exp $"
#include <fstream>
#include <iostream>
#include <tfxx/commandline.h>
#include <datreadxx/error.h>
#include <datreadxx/hpmoread.h>
#include <datreadxx/hpmo.h>
using std::cout;
using std::cerr;
using std::endl;
struct Options {
bool verbose;
}; // struct Options
int main(int iargc, char* argv[])
{
......@@ -74,7 +82,7 @@ int main(int iargc, char* argv[])
exit(0);
}
// dummy operation: print option settings
/* dummy operation: print option settings
for (int iopt=0; iopt<2; iopt++)
{
cout << "option: '" << options[iopt].opt_string << "'" << endl;
......@@ -95,6 +103,12 @@ int main(int iargc, char* argv[])
// dummy operation: print rest of command line
while (cmdline.extra()) { cout << cmdline.next() << endl; }
*/
Options opt;
opt.verbose=cmdline.optset(1);
std::string infile=cmdline.next();
}
/* ----- END OF hpmotest.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