Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/loader/LightManager.cc @ 358

Last change on this file since 358 was 347, checked in by rgrieder, 17 years ago
  • fixed a bug: under windows, XML uses wchar_t instead of char, but can use char —> commented a line in xml/xmlParser.h according to description in that file
  • was able to add the xml parser again to orxonox.cc thanks to the above modification
File size: 487 bytes
RevLine 
[164]1
[341]2#include "xml/xmlParser.h"
[164]3#include "LightManager.h"
4
5namespace light
6{
7        LightManager::LightManager()
8        {
[346]9    std::vector<Light> elements_ = *(new std::vector<Light>);
[164]10        }
11       
12        void LightManager::loadParams(XMLNode xml)
13        {
14                if (!xml.isEmpty())
15                {
[347]16                        int nLights = xml.nChildNode("light");
[164]17                        for (int i=0; i<nLights;i++)
18                        {
[347]19                                Light l = *(new Light(xml.getChildNode("light",i)));
[346]20        this->elements_.insert(elements_.end(),l);
[164]21                        }
22                }               
23               
24        }       
25               
26       
27}
28
Note: See TracBrowser for help on using the repository browser.