8#ifndef SEIMS_ITP_WEIGHTDATA_H
9#define SEIMS_ITP_WEIGHTDATA_H
16using namespace db_mongoc;
46 void GetWeightData(
int* n, FLTPT** data,
int *itp_weight_data_length);
50 void Dump(std::ostream* fs);
57 void Dump(
const string& filename);
68 bool ReadFromMongoDB(
MongoGridFs* gfs,
const string& filename);
74 FLTPT* itp_weight_data_;
76 FLTPT** itp_weight_data2d_;
Base type of all interfaces.
Definition: basic.h:407
A simple wrapper of the class of MongoDB database mongoc_gridfs_t.
Definition: db_mongoc.h:141
Simple wrappers of the API of MongoDB C driver mongo-c-driver, see MongoDB C Driver for more informat...
bool Initialized()
Initialized successful?
Definition: clsInterpolationWeightData.h:60
ItpWeightData(MongoGridFs *gfs, const string &filename)
Overload constructor.
void Dump(std::ostream *fs)
Output the weight data to ostream.
void Dump(const string &filename)
Output the weight data to file.
void GetWeightData2D(int *n, int *n_stations, FLTPT ***data)
Get the weight data read from mongoDB in form of 2DArray.
~ItpWeightData()
Destructor.
Read weight data of each observe stations from database.
Definition: clsInterpolationWeightData.h:24
Common Cross-platform Geographic Library (CCGL)
The SEIMS related definitions and utilities header.