| Last change
                  on this file since 591 was
                  164,
                  checked in by nicolasc, 18 years ago | 
        
          | 
Brute force megre of xml branch
 | 
        | File size:
            458 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 |  | 
|---|
| 2 | #include "../xml/xmlParser.h" | 
|---|
| 3 | #include "LightManager.h" | 
|---|
| 4 |  | 
|---|
| 5 | namespace light | 
|---|
| 6 | { | 
|---|
| 7 | LightManager::LightManager() | 
|---|
| 8 | { | 
|---|
| 9 | vector<Light> this->elements_ = new vector<Light>; | 
|---|
| 10 | } | 
|---|
| 11 |  | 
|---|
| 12 | void LightManager::loadParams(XMLNode xml) | 
|---|
| 13 | { | 
|---|
| 14 | if (!xml.isEmpty()) | 
|---|
| 15 | { | 
|---|
| 16 | int nLights = xml.nChildNode("light"); | 
|---|
| 17 | for (int i=0; i<nLights;i++) | 
|---|
| 18 | { | 
|---|
| 19 | Light l = new Light(xml.getChildNode("light",i)); | 
|---|
| 20 | this->elements_.append(l); | 
|---|
| 21 | } | 
|---|
| 22 | } | 
|---|
| 23 |  | 
|---|
| 24 | } | 
|---|
| 25 |  | 
|---|
| 26 |  | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.