WXP C++ Library Version 6.74.9
|
This class is a repository for point data. More...
#include "../include/Data.h"
Public Types | |
enum | Type { NONE , VALUE , STRING } |
Public Member Functions | |
Data (int rfields) | |
Data (const Data &data) | |
Data | operator= (const Data &data) |
int | copy (Data &data) |
int | init () |
int | clear () |
int | getNum () |
int | setSource (const char *str) |
const char * | getSource () |
int | setFields (int rfields) |
int | getFields () |
int | setType (int fld, int rtype) |
int | getType (int fld) |
int | expand (int rlimit) |
int | expand () |
int | setDate (Date &rdate) |
int | getDate (Date &rdate) |
Date | getDate () |
int | setDatim (const char *rdatim) |
const char * | getDatim () |
int | setInfo (const char *rinfo) |
const char * | getInfo () |
int | setInfo (int ind, const char *rinfo) |
const char * | getInfo (int ind) |
int | searchInfo (const char *str) |
int | setUnits (int ind, const char *unit) |
const char * | getUnits (int ind) |
int | setVarSpec (int fld, VarSpec &rvs) |
int | getVarSpec (int fld, VarSpec &rvs) |
int | getIndex (const char *rid) |
int | setId (int ind, const char *rid) |
const char * | getId (int ind) |
int | setLoc (int ind, EarthPoint &rpt) |
int | setLoc (int ind, float lat, float lon) |
int | getLoc (int ind, EarthPoint &rpt) |
EarthPoint | getLoc (int ind) |
int | setValue (int ind, float rval) |
int | setValue (int ind, int fld, float rval) |
int | setString (int ind, const char *rstr) |
int | setString (int ind, int fld, const char *rstr) |
int | add (Data &data, int ind, int fld) |
int | add (Data &data, int ind) |
int | add (const char *rid, EarthPoint &rpt, float rval) |
int | add (const char *rid, EarthPoint &rpt, float rval1, float rval2) |
int | add (Datum &datum) |
int | addValue (EarthPoint &rpt, float val) |
float | getValue (int ind) |
float | getValue (int ind, int fld) |
const char * | getString (int ind) |
const char * | getString (int ind, int fld) |
int | print () |
int | printData (int ind) |
int | printData () |
Static Public Member Functions | |
static int | copyInfo (Data &data1, const Data &data2) |
static int | copy (Data &data1, const Data &data2) |
This class is a repository for point data.
Data::Data | ( | const Data & | data | ) |
Copy constructor for the data class
data | Data class to copy from |
const char * Data::getId | ( | int | ind | ) |
Returns the identifier string
ind | Index into array |
Referenced by WXP::DataMath::add(), WXP::DataMath::add(), WXP::DataMath::average(), WXP::DataMath::cutoff(), WXP::DataMath::diff(), WXP::DataMath::max(), WXP::DataMath::max(), WXP::DataMath::min(), WXP::DataMath::min(), WXP::DataMath::removeValid(), and WXP::DataMath::uniqueId().
int Data::getIndex | ( | const char * | rid | ) |
Returns the index of a particular ID in array
rid | Identifier to search for |
References WXP::StrLib::equal().
Referenced by WXP::DataMath::add(), WXP::DataMath::add(), WXP::DataMath::diff(), WXP::DataMath::max(), WXP::DataMath::max(), WXP::DataMath::min(), and WXP::DataMath::min().
Assignment operator. Used to overload copying
data | Data class to copy from |
int Data::setId | ( | int | ind, |
const char * | rid | ||
) |
Sets the identifier for a particular data point
ind | Index of point |
rid | String to use |
References WXP::StrLib::acopy().
Referenced by WXP::MosRaw::compute(), WXP::SfcRaw::compute(), and WXP::UpaRaw::compute().