WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WXP::Data Class Reference

This class is a repository for point data. More...

#include "../include/Data.h"

Inheritance diagram for WXP::Data:
WXP::Raw

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)
 

Detailed Description

This class is a repository for point data.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Data()

Data::Data ( const Data data)

Copy constructor for the data class

Parameters
dataData class to copy from

Member Function Documentation

◆ getId()

const char * Data::getId ( int  ind)

◆ getIndex()

int Data::getIndex ( const char *  rid)

Returns the index of a particular ID in array

Parameters
ridIdentifier to search for
Returns
Index or -1 for not found

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().

◆ operator=()

Data Data::operator= ( const Data data)

Assignment operator. Used to overload copying

Parameters
dataData class to copy from

◆ setId()

int Data::setId ( int  ind,
const char *  rid 
)

Sets the identifier for a particular data point

Parameters
indIndex of point
ridString to use

References WXP::StrLib::acopy().

Referenced by WXP::MosRaw::compute(), WXP::SfcRaw::compute(), and WXP::UpaRaw::compute().


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