Subversion Repositories heating

Rev

Rev 49 | Rev 52 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 50
Line 631... Line 631...
631
void heating::getConfig (int s1)
631
void heating::getConfig (int s1)
632
{
632
{
633
HCONF *akt = HeatConf;
633
HCONF *akt = HeatConf;
634
stringstream stream;
634
stringstream stream;
635
 
635
 
636
	stream << "CONFIG:GLOBAL NIGHT:" << setprecision(2) << glb_night << ";";
636
	stream << "CONFIG:GLOBAL NIGHT:" << fixed << setprecision(1) << glb_night << ";";
637
	stream << "CONFIG:GLOBAL MINIMAL:" << setprecision(2) << glb_minimal << ";";
637
	stream << "CONFIG:GLOBAL MINIMAL:" << fixed << setprecision(1) << glb_minimal << ";";
638
	stream << "CONFIG:ONOFF:" << ((onoff) ? "ON;" : "OFF;");
638
	stream << "CONFIG:ONOFF:" << ((onoff) ? "ON;" : "OFF;");
639
 
639
 
640
	while (akt)
640
	while (akt)
641
	{
641
	{
642
		stream << "CONFIG:ROOM:" << akt->rnum << ":" << string(akt->rname) << ":" <<
642
		stream << "CONFIG:ROOM:" << itostring(akt->rnum) << ":" << string(akt->rname) << ":" <<
643
			setprecision(1) << akt->soll << ":" << akt->night << ":" <<
643
			fixed << setprecision(1) << akt->soll << ":" << akt->night << ":" <<
644
			akt->minimal << ":" << timeToStr(akt->start) << ":" << timeToStr(akt->end) << ":" <<
644
			akt->minimal << ":" << timeToStr(akt->start) << ":" << timeToStr(akt->end) << ":" <<
645
			timeToStr(akt->wstart) << ":" << timeToStr(akt->wend) << ";";
645
			timeToStr(akt->wstart) << ":" << timeToStr(akt->wend) << ";";
646
 
646
 
647
		akt = akt->next;
647
		akt = akt->next;
648
	}
648
	}