MeteoTools::GetSynopDataSet
defined as
mySynopList
BMSDSynopList& GetSynopDataSet()
Return Value
This returned a BMSDSynopList, an Array
of BMSD_SYN
structures.
A
BMSDSynopList is a
CArray-Objekt
and is defined in
MeteoToolsDefs.h
Remarks
This get an Array of BMSD_SYN
structures,
and it is needed in order to receive the pointer for the
CArray objekt BMSDSynopList.
In the
MeteoTools.cpp is this
funktion defined as mySynopList.
#define
mySynopList GetSynopDataSet()
Example
// center point of Screen
// sx = mySreenSize.cx / 2; sy = mySreenSize.cy / 2;
// xoff,yoff,xscale,yscale --> see
DrawSeaData
// You yourself should put hour and date
int SynArray=SetSynopField(date);
if(!SynArray) return;
//GetSynopDataSet if defined as mySynopList
//SetDetailSympol is a routine of sorce code example DrawTools
for(int z=0; z<mySynopList.GetSize(); z++)
{
int X = (int)((double)(((double)mySynopList[z].lon+xoff)/xscale))+sx;
int Y = (int)((double)(((double)mySynopList[z].lat+yoff)/yscale))+sx;
SetDetailSympol(pDC,mySynopList[z].data.pflag,
mySynopList[z].data.prmsl,
mySynopList[z].data.btcdc,
mySynopList[z].data.temp,
mySynopList[z].data.ugrd,
mySynopList[z].data.vgrd);
}