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

#include <flatrecord.h>

Collaboration diagram for FlatFluxRecord:
Collaboration graph

Public Member Functions

 FlatFluxRecord (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 Poco::Nullable< std::string > &disturbanceType, const Poco::Nullable< int > &disturbanceCode, const std::string &srcPool, const std::string &dstPool, double flux)
 
 ~FlatFluxRecord ()
 
bool operator== (const FlatFluxRecord &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 FlatFluxRecord &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
 
Poco::Nullable< std::string > _disturbanceType
 
Poco::Nullable< int > _disturbanceCode
 
std::string _srcPool
 
std::string _dstPool
 
double _flux
 

Constructor & Destructor Documentation

◆ FlatFluxRecord()

FlatFluxRecord ( 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 Poco::Nullable< std::string > &  disturbanceType,
const Poco::Nullable< int > &  disturbanceCode,
const std::string &  srcPool,
const std::string &  dstPool,
double  flux 
)

◆ ~FlatFluxRecord()

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 FlatFluxRecord other)

◆ operator==()

bool operator== ( const FlatFluxRecord other) const

◆ setId()

void setId ( Int64  id)

Member Data Documentation

◆ _ageClass

std::string _ageClass
private

◆ _classifierValues

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

◆ _disturbanceCode

Poco::Nullable<int> _disturbanceCode
private

◆ _disturbanceType

Poco::Nullable<std::string> _disturbanceType
private

◆ _dstPool

std::string _dstPool
private

◆ _flux

double _flux
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

◆ _srcPool

std::string _srcPool
private

◆ _year

int _year
private

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