#include <iostream>
#include <cmath>
#include <cstdlib>


using namespace std;


#include "Room.h"
#include "Office.h"
#include "Classroom.h"
#include <map>



int main(int argc,char *argv[])
{

    Room* c1 = new Room(1);
    Room* c2 = new Classroom(101,50,true);
    Room* c3 = new Classroom(102,45,false);
    Room* c4 = new Classroom(103,30,false);
    Room* c5 = new Office(104,"Hans Muster");
    Room* c6 = new Office(105,"Toto");
    Room* c7 = new Office(106,"E.Benoist");
    cout << c4->toString() << endl;
    cout << c7->toString() << endl;

    std::map<int,Room*> hm;
    hm[101]=c2;
    hm[102]=c3;
    hm[103]=c4;

    cout << hm[102]->toString() << endl;
    cout << hm[103]->toString() << endl;
    cout << Room::getRoom(101)->toString() << endl;
    cout << Room::getRoom(106)->toString() << endl;

    
/*    cout << c1->getVal1() << endl;
    cout << c1->computeTotal() << endl;
    cout << c2->computeTotal() << endl;
    cout << "Class B=" <<c3->computeTotal() << "  ClassA="<< c4->computeTotal() << endl;
    cout << "Class B=" <<c3->anotherResult() << "  ClassA="<< c4->anotherResult() << endl;

*/
   return 1;

}

