GCBM
Public Member Functions | Private Attributes | List of all members
FlatDisturbanceRecord Class Reference

#include <flatrecord.h>

Collaboration diagram for FlatDisturbanceRecord:
Collaboration graph

Public Member Functions

 FlatDisturbanceRecord (int year, const std::vector< Poco::Nullable< std::string >> &classifierValues, const std::string &landClass, const std::string &ageClass, const std::vector< Poco::Nullable< std::string >> &previousClassifierValues, const std::string &previousLandClass, const std::string &previousAgeClass, const std::string &disturbanceType, int disturbanceCode, double area)
 
 ~FlatDisturbanceRecord ()
 
bool operator== (const FlatDisturbanceRecord &other) const
 
size_t hash () const
 
std::string header (const std::vector< std::string > &classifierNames) const
 
std::string asPersistable () const
 
std::vector< std::optional< std::string > > asVector () const
 
void merge (const FlatDisturbanceRecord &other)
 
void setId (Int64 id)
 
Int64 getId () const
 
int getYear () const
 

Private Attributes

size_t _hash = -1
 
Int64 _id
 
int _year
 
std::vector< Poco::Nullable< std::string > > _classifierValues
 
std::string _landClass
 
std::string _ageClass
 
std::vector< Poco::Nullable< std::string > > _previousClassifierValues
 
std::string _previousLandClass
 
std::string _previousAgeClass
 
std::string _disturbanceType
 
int _disturbanceCode
 
double _area
 

Constructor & Destructor Documentation

◆ FlatDisturbanceRecord()

FlatDisturbanceRecord ( int  year,
const std::vector< Poco::Nullable< std::string >> &  classifierValues,
const std::string &  landClass,
const std::string &  ageClass,
const std::vector< Poco::Nullable< std::string >> &  previousClassifierValues,
const std::string &  previousLandClass,
const std::string &  previousAgeClass,
const std::string &  disturbanceType,
int  disturbanceCode,
double  area 
)

◆ ~FlatDisturbanceRecord()

Member Function Documentation

◆ asPersistable()

std::string asPersistable ( ) const

◆ asVector()

std::vector< std::optional< std::string > > asVector ( ) const

◆ getId()

Int64 getId ( ) const

◆ getYear()

int getYear ( ) const

◆ hash()

size_t hash ( ) const

◆ header()

std::string header ( const std::vector< std::string > &  classifierNames) const

◆ merge()

void merge ( const FlatDisturbanceRecord other)

◆ operator==()

bool operator== ( const FlatDisturbanceRecord other) const

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _ageClass

std::string _ageClass
private

◆ _area

double _area
private

◆ _classifierValues

std::vector<Poco::Nullable<std::string> > _classifierValues
private

◆ _disturbanceCode

int _disturbanceCode
private

◆ _disturbanceType

std::string _disturbanceType
private

◆ _hash

size_t _hash = -1
mutableprivate

◆ _id

Int64 _id
private

◆ _landClass

std::string _landClass
private

◆ _previousAgeClass

std::string _previousAgeClass
private

◆ _previousClassifierValues

std::vector<Poco::Nullable<std::string> > _previousClassifierValues
private

◆ _previousLandClass

std::string _previousLandClass
private

◆ _year

int _year
private

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