DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
PopQuotasTable Class Reference

#include <popquotastable.h>

Inheritance diagram for PopQuotasTable:

Classes

struct  Impl
 

Public Member Functions

 PopQuotasTable (std::shared_ptr< sqlite::SQLiteStorage > db, std::string name)
 
 ~PopQuotasTable () noexcept
 
void dropAndCreate ()
 
void insert (int tstep, int popid, Population *pop)
 

Public Attributes

const FieldDef< FieldType::Integer > fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldPopId = makeFieldDef("PopId",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldGroup = makeFieldDef("PopGroup",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Real > fldQuotasUptake = makeFieldDef("QuotasUptake",FieldType::Real())
 
const FieldDef< FieldType::Real > fldQuotas = makeFieldDef("Quotas",FieldType::Real())
 
const FieldDef< FieldType::Real > fldChoking = makeFieldDef("Choking",FieldType::Real())
 

Constructor & Destructor Documentation

◆ PopQuotasTable()

PopQuotasTable::PopQuotasTable ( std::shared_ptr< sqlite::SQLiteStorage >  db,
std::string  name 
)

◆ ~PopQuotasTable()

PopQuotasTable::~PopQuotasTable ( )
defaultnoexcept

Member Function Documentation

◆ dropAndCreate()

void PopQuotasTable::dropAndCreate ( )

◆ insert()

void PopQuotasTable::insert ( int  tstep,
int  popid,
Population pop 
)

Member Data Documentation

◆ fldChoking

const FieldDef<FieldType::Real> PopQuotasTable::fldChoking = makeFieldDef("Choking",FieldType::Real())

◆ fldGroup

const FieldDef<FieldType::Integer> PopQuotasTable::fldGroup = makeFieldDef("PopGroup",FieldType::Integer()).notNull()

◆ fldPopId

const FieldDef<FieldType::Integer> PopQuotasTable::fldPopId = makeFieldDef("PopId",FieldType::Integer()).notNull()

◆ fldQuotas

const FieldDef<FieldType::Real> PopQuotasTable::fldQuotas = makeFieldDef("Quotas",FieldType::Real())

◆ fldQuotasUptake

const FieldDef<FieldType::Real> PopQuotasTable::fldQuotasUptake = makeFieldDef("QuotasUptake",FieldType::Real())

◆ fldTStep

const FieldDef<FieldType::Integer> PopQuotasTable::fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull()

The documentation for this class was generated from the following files: