12 std::ifstream infile(filename.c_str());
13 double currfreq, currphase;
22 infile >> currfreq >> currphase;
36 std::ofstream outfile(filename.c_str());
38 const unsigned int nelements =
GetPeriods().size();
39 for (
unsigned int i = 0; i < nelements; ++i)
const trealdata & GetPeriods() const
Read-only access to the vector of periods for the phase velocities.
virtual ~ParkSurfaceWaveData()
virtual void WriteAscii(const std::string &filename) const
Write the data in simple ascii format.
const trealdata & GetPhaseVelocities() const
Read-only access to the vector of phase velocities.
trealdata & SetPeriods()
Read-write access to periods, the format might be changed in the future.
virtual void ReadAscii(const std::string &filename)
Read a file in general ascii format, i.e lines with period velocity each.
trealdata & SetPhaseVelocities()
Read-write access to phase velocities, the format might be changed in the future. ...
The basic exception class for all errors that arise in gplib.