CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
intervention.cpp
Go to the documentation of this file.
1
10
11/* ===============================================================================================================================
12 This file is part of CoastalME, the Coastal Modelling Environment.
13
14 CoastalME 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.
15
16 This 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.
17
18 You 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.
19===============================================================================================================================*/
20#include <assert.h>
21
22#include <iostream>
23using std::ios;
24
25#include "cme.h"
26#include "coast.h"
27#include "intervention.h"
28
30CRWIntervention::CRWIntervention(CRWCoast* pCoastIn, int const nCoast, int const nPointOnCoast, int const nLandCategory)
31{
32 pCoast = pCoastIn;
33
34 m_nCoast = nCoast;
35 m_nPointOnCoastline = nPointOnCoast;
36 m_nCategory = nLandCategory;
37}
38
43
46{
47}
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.
int m_nPointOnCoastline
The point on the coast on which this coast landform sits.
Real-world class used to represent coastline objects.
Definition coast.h:39
~CRWIntervention(void) override
Destructor.
void Display(void) override
Instantiates the pure virtual function in the abstract parent class, so that CRWIntervention is not a...
CRWIntervention(CRWCoast *, int const, int const, int const)
Constructor with four parameters.
This file contains global definitions for CoastalME.
Contains CRWCoast definitions.
Contains CRWIntervention definitions.