Changeset 715 for code/branches/FICN/src/orxonox/objects/WorldEntity.cc
- Timestamp:
- Dec 28, 2007, 11:33:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/WorldEntity.cc
r708 r715 26 26 */ 27 27 28 #include <string> 28 29 #include <sstream> 29 30 … … 31 32 #include "misc/Tokenizer.h" 32 33 #include "misc/String2Number.h" 33 #include "misc/String.h"34 34 #include "../core/CoreIncludes.h" 35 35 #include "../Orxonox.h" … … 88 88 if (xmlElem->Attribute("position")) 89 89 { 90 std::vector< String> pos = tokenize(xmlElem->Attribute("position"),",");90 std::vector<std::string> pos = tokenize(xmlElem->Attribute("position"),","); 91 91 float x, y, z; 92 92 String2Number<float>(x, pos[0]); … … 98 98 if (xmlElem->Attribute("direction")) 99 99 { 100 std::vector< String> pos = tokenize(xmlElem->Attribute("direction"),",");100 std::vector<std::string> pos = tokenize(xmlElem->Attribute("direction"),","); 101 101 float x, y, z; 102 102 String2Number<float>(x, pos[0]); … … 125 125 if (xmlElem->Attribute("scale")) 126 126 { 127 String scaleStr = xmlElem->Attribute("scale");127 std::string scaleStr = xmlElem->Attribute("scale"); 128 128 float scale; 129 129 String2Number<float>(scale, scaleStr); … … 133 133 if (xmlElem->Attribute("rotationAxis")) 134 134 { 135 std::vector< String> pos = tokenize(xmlElem->Attribute("rotationAxis"),",");135 std::vector<std::string> pos = tokenize(xmlElem->Attribute("rotationAxis"),","); 136 136 float x, y, z; 137 137 String2Number<float>(x, pos[0]);
Note: See TracChangeset
for help on using the changeset viewer.