solarpilot/Toolbox.cpp
//---------Weather data object class --------------------
//Copy constructor
Weather data object class
Copy constructor
Weather data object class Copy constructor
WeatherData::WeatherData( const WeatherData &wd) : 
	_N_items( wd._N_items ),
	Day( wd.Day ),
	Hour( wd.Hour ),
	Month( wd.Month ),
	DNI( wd.DNI ),
	T_db( wd.T_db ),
	Pres( wd.Pres ),
	V_wind( wd.V_wind ),
	Step_weight( wd.Step_weight )
{
	initPointers();
}
WeatherData :: WeatherData ( const WeatherData & wd ) : _N_items ( wd . _N_items ) , Day ( wd . Day ) , Hour ( wd . Hour ) , Month ( wd . Month ) , DNI ( wd . DNI ) , T_db ( wd . T_db ) , Pres ( wd . Pres ) , V_wind ( wd . V_wind ) , Step_weight ( wd . Step_weight ) { initPointers ( ) ; }
Weather data object class
Copy constructor
Weather data object class Copy constructor
//Recreate the pointer array