CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
drift.cpp
Go to the documentation of this file.
1
12
13/*===============================================================================================================================
14
15This file is part of CoastalME, the Coastal Modelling Environment.
16
17CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
18
19This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20
21You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23===============================================================================================================================*/
24#include <assert.h>
25
26#include <iostream>
27using std::cout;
28using std::cerr;
29using std::endl;
30using std::ios;
31
32#include "cme.h"
33#include "drift.h"
34
36CRWDrift::CRWDrift(CRWCoast* pCoastIn, int const nCoast, int const nPointOnCoast)
37:
38 m_dD50(0)
39{
40 pCoast = pCoastIn;
41
42 m_nCoast = nCoast;
43 m_nPointOnCoast = nPointOnCoast;
45}
46
49{
50}
51
54{
55}
int m_nPointOnCoast
The point on the coast on which this coast landform sits.
CRWCoast * pCoast
Pointer to this landform's coast.
int m_nCategory
Landform category code.
int m_nCoast
The coast number on which this coast landform sits.
Real-world class used to represent coastline objects.
Definition coast.h:39
double m_dD50
The drift's d50.
Definition drift.h:36
CRWDrift(CRWCoast *, int const, int const)
Constructor with three parameters and an intialization list.
Definition drift.cpp:36
void Display(void) override
Instantiates the pure virtual function in the abstract parent class, so that CRWDrift is not an abstr...
Definition drift.cpp:53
~CRWDrift(void) override
Destructor.
Definition drift.cpp:48
This file contains global definitions for CoastalME.
int const LF_CAT_DRIFT
Definition cme.h:430
Contains CRWDrift definitions.