Changeset 854 for code/branches/core/src/orxonox
- Timestamp:
- Mar 5, 2008, 7:38:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/orxonox/core/XMLPort.h
r853 r854 108 108 if (loading) 109 109 { 110 std::cout << "3_1: load param " << this->paramname_ << std::endl;111 110 std::string attribute = xmlelement.GetAttribute(this->paramname_); 112 std::cout << "3_2: attribute " << attribute << std::endl;113 111 if (attribute.size() > 0) 114 112 { 115 113 SubString tokens(attribute, ",", SubString::WhiteSpaces, false, '\\', '"', '(', ')', '\0'); 116 std::cout << "3_3: tokens: " << tokens.size() << " params: " << this->loadfunction_->getParamCount() << std::endl;117 114 if ((unsigned int)tokens.size() >= (unsigned int)this->loadfunction_->getParamCount()) 118 115 { 119 116 if (this->loadfunction_->getParamCount() == 1) 120 117 { 121 std::cout << "3_4 start: load with whole attribute as input" << std::endl;122 118 (*this->loadfunction_)(object, MultiTypeMath(attribute)); 123 std::cout << "3_5 end" << std::endl;124 119 } 125 120 else 126 121 { 127 std::cout << "3_4: load with tokens as input" << std::endl;128 122 MultiTypeMath param1, param2, param3, param4, param5; 129 123 if (tokens.size() >= 1) param1 = tokens[0];
Note: See TracChangeset
for help on using the changeset viewer.