Commit 2feeaf11 authored by Ulrich Kemloh's avatar Ulrich Kemloh

Debug compilation is now running with cmake

parent e28fa915
......@@ -69,7 +69,6 @@ EventManager::EventManager(Building *_b)
_building = _b;
_eventCounter = 0;
_dynamic = false;
_file = fopen("../events/events.txt", "r");
_lastUpdateTime = 0;
//_deltaT = 0;
_projectFilename=_building->GetProjectFilename();
......@@ -89,6 +88,12 @@ EventManager::EventManager(Building *_b)
CreateRoutingEngine(_b, true);
}
EventManager::~EventManager()
{
if(_file)
fclose(_file);
}
bool EventManager::ReadEventsXml()
{
Log->Write("INFO: \tLooking for pre-defined events in other files");
......@@ -666,3 +671,5 @@ Router * EventManager::CreateRouter(const RoutingStrategy& strategy)
}
return rout;
}
......@@ -101,6 +101,12 @@ public:
///constructor
EventManager(Building *_b);
/**
*
* destructor
*/
~EventManager();
/**
* Read and parse the events
* @return false if an error occured
......
......@@ -36,6 +36,7 @@
#include <string.h>
#include <algorithm>
#include <sstream>
#include <iostream>
#define _USE_MATH_DEFINES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment