Changeset 1777 for code/branches/core3/src/orxonox
- Timestamp:
- Sep 14, 2008, 1:03:48 PM (16 years ago)
- Location:
- code/branches/core3/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/Orxonox.cc
r1768 r1777 34 34 // Precompiled Headers 35 35 #include "OrxonoxStableHeaders.h" 36 #include "util/MathConvert.h" 36 37 #include "Orxonox.h" 37 38 … … 77 78 #include "Settings.h" 78 79 80 79 81 #define TestConv(nr, Type1, var1, Type2, res) \ 80 82 Type1 var##nr##1##var1; \ … … 98 100 99 101 class FooBar { }; 102 103 inline bool explicitConversion(FooBar* output, std::string input) 104 { 105 return true; 106 } 107 108 //inline bool explicitConversion(std::string* output, const orxonox::Vector3& input) 109 //{ 110 // std::ostringstream ostream; 111 // if (ostream << input.x << "," << input.y << "," << input.z) 112 // { 113 // (*output) = ostream.str(); 114 // return true; 115 // } 116 // return false; 117 //} 118 100 119 101 120 … … 212 231 Factory::createClassHierarchy(); 213 232 214 Radiannmbr;215 float res;233 std::string nmbr; 234 char res('a'); 216 235 //const char* nmbr; 217 236 //const char* str; 218 convertValue(& res, nmbr);237 convertValue(&nmbr, res); 219 238 //const unsigned int blah = 4; 220 239 //convertValue(nmbr, blah); … … 226 245 FooBar asdf; 227 246 std::string asdf2; 247 std::ostringstream oss; 248 char blah(' '); 249 oss << blah; 228 250 std::cout << asdf2; 229 251 ConvertValue(&asdf2, asdf); 252 //if (conversionTests::OStreamOperator<FooBar>::exists) 253 // int asdfasdfasdf = 7; 230 254 //COUT(3) << asdf; 231 255 -
code/branches/core3/src/orxonox/Orxonox.h
r1766 r1777 35 35 #ifndef _Orxonox_H__ 36 36 #define _Orxonox_H__ 37 inline bool explicitConversion(float* output, const double input)38 {39 *output = 2*input;40 return true;41 }42 37 43 38 #include "OrxonoxPrereqs.h"
Note: See TracChangeset
for help on using the changeset viewer.