GridDataHandler

Class that handles GridData.

[ verification_docs | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION
AUTHOR

Class Summary

template<class T>
class GridDataHandler

{

public:
GridDataHandler(const Date& b, const Date& e, DataFormatter& df, const GridType& gt, const StartTime& st);
GridDataHandler(const GridDataHandler& fh);
~GridDataHandler();
GridDataHandler& operator=(const GridDataHandler& rhs);
void show(const ShowStyle& s );
int getCount() ;
T& getDatum(const int& i);
Date getBeginDate() ;
Date getEndDate() ;
vector<string> getAreaNames() ;
vector< vector<string> > getSubAreaNames() ;
protected:
Date _beginDate;
Date _endDate;
Date _tempDate;
GridType _gridType;
StartTime _startTime;
string _formatType;
vector<T> _data;
vector<string> _areaNames;
vector< vector<string> > _subAreaNames;
void _formatGrids(const int& startPoint, DataFormatter& df, vector<Grid>& grids, vector< vector<Area> >& areas);
void _checkDates();
private:
}; // GridDataHandler


DESCRIPTION

Class that handles the creation of GridData.


AUTHOR

Mike Smoot


GridDataHandler(const Date& b, const Date& e, DataFormatter& df, const GridType& gt, const StartTime& st);

Constructor.

		GridDataHandler(const Date& b, 
						const Date& e, 
						DataFormatter& df,
						const GridType& gt,
						const StartTime& st);

GridDataHandler(const GridDataHandler& fh);

Copy constructor.

		GridDataHandler(const GridDataHandler& fh);

~GridDataHandler();

Destructor.

		~GridDataHandler();

GridDataHandler& operator=(const GridDataHandler& rhs);

Operator =

		GridDataHandler& operator=(const GridDataHandler& rhs);

void show(const ShowStyle& s );

Dumps all data in T held in the given instance. Used for debugging purposes.

		void show(const ShowStyle& s = HUMAN);

int getCount() ;

Returns number of forecasts in handler.

		int getCount()                         ;

Function is currently defined inline.


T& getDatum(const int& i);

Returns a reference to a forecast.

		T& getDatum(const int& i); 

Date getBeginDate() ;

Returns begin date.

		Date getBeginDate()                       ;

Function is currently defined inline.


Date getEndDate() ;

Returns end date.

		Date getEndDate()                     ;

Function is currently defined inline.


vector<string> getAreaNames() ;

Returns vector of area names.

		vector<string> getAreaNames()                       ;

Function is currently defined inline.


vector< vector<string> > getSubAreaNames() ;

Returns vector of vector of sub area names.

		vector< vector<string> > getSubAreaNames()                          ;

Function is currently defined inline.


Date _beginDate;

Beginning date of forecasts to be considered.

		Date _beginDate;

Date _endDate;

Ending date of forecasts to be considered.

		Date _endDate;

Date _tempDate;

Placeholder date for iterating through forecasts.

		Date _tempDate;

GridType _gridType;

GridType

		GridType _gridType;

StartTime _startTime;

Enum indicating when the forecast period starts.

		StartTime _startTime;

string _formatType;

DataFormatter type.

		string _formatType;

vector<T> _data;

Vector of grid data type T.

		vector<T> _data;

vector<string> _areaNames;

Vector of area names.

		vector<string> _areaNames;

vector< vector<string> > _subAreaNames;

Vector of vector of sub area names.

		vector< vector<string> > _subAreaNames;

void _formatGrids(const int& startPoint, DataFormatter& df, vector<Grid>& grids, vector< vector<Area> >& areas);

Method that asks DataFormatter to format grids.

		void _formatGrids(const int& startPoint,
						  DataFormatter& df, 
						  vector<Grid>& grids,
						  vector< vector<Area> >& areas);

void _checkDates();

Method to make sure dates line up OK.

		void _checkDates();

All Members

public:
GridDataHandler& operator=(const GridDataHandler& rhs);
void show(const ShowStyle& s );
int getCount() ;
T& getDatum(const int& i);
Date getBeginDate() ;
Date getEndDate() ;
vector<string> getAreaNames() ;
vector< vector<string> > getSubAreaNames() ;
protected:
Date _beginDate;
Date _endDate;
Date _tempDate;
GridType _gridType;
StartTime _startTime;
string _formatType;
vector<T> _data;
vector<string> _areaNames;
vector< vector<string> > _subAreaNames;
void _formatGrids(const int& startPoint, DataFormatter& df, vector<Grid>& grids, vector< vector<Area> >& areas);
void _checkDates();

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Wed Aug 30 12:53:35 2000 .

Report problems to jkotula@stratasys.com