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

#include <fishfarmsdeftable.h>

Classes

struct  Impl
 

Public Types

using FishfarmSelectFunc = std::function< bool(int nodeid, std::shared_ptr< Fishfarm >)>
 

Public Member Functions

 FishFarmsDefTable (std::shared_ptr< sqlite::SQLiteStorage > db, std::string name)
 
 ~FishFarmsDefTable () noexcept
 
void dropAndCreate ()
 
void insertDef (const Fishfarm &fishfarm)
 
void getAllFishfarms (FishfarmSelectFunc func)
 

Member Typedef Documentation

◆ FishfarmSelectFunc

using FishFarmsDefTable::FishfarmSelectFunc = std::function<bool(int nodeid, std::shared_ptr<Fishfarm>)>

Constructor & Destructor Documentation

◆ FishFarmsDefTable()

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

◆ ~FishFarmsDefTable()

FishFarmsDefTable::~FishFarmsDefTable ( )
defaultnoexcept

Member Function Documentation

◆ dropAndCreate()

void FishFarmsDefTable::dropAndCreate ( )

◆ getAllFishfarms()

void FishFarmsDefTable::getAllFishfarms ( FishFarmsDefTable::FishfarmSelectFunc  func)

◆ insertDef()

void FishFarmsDefTable::insertDef ( const Fishfarm fishfarm)

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