CMTStation.cpp File Reference

#include "CMTStation.h"
#include "miscfunc.h"
#include "EDILexer.hpp"
#include "EDIParser.hpp"
#include "JLexer.hpp"
#include "JParser.hpp"
#include <iterator>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include <string>
#include "CFatalException.h"
#include <boost/filesystem/operations.hpp>
#include <boost/bind.hpp>
#include <functional>
#include <fstream>
#include <cassert>

Include dependency graph for CMTStation.cpp:

Go to the source code of this file.

Functions

void TrimFilename (string &name)


Function Documentation

void TrimFilename ( string &  name  ) 

Definition at line 19 of file CMTStation.cpp.

00020 {
00021         unsigned int slashpos = name.find('/',0);
00022     if (slashpos != string::npos)
00023                 name = name.substr(slashpos+1);
00024     unsigned int dotpos = name.find('.',0);
00025     if (dotpos != string::npos)
00026                 name.erase(dotpos);
00027 }


Generated on Thu Nov 22 14:00:00 2007 for GPLIB++ by  doxygen 1.5.1