Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 14, 2008, 1:03:48 PM (16 years ago)
Author:
rgrieder
Message:

svn save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/Orxonox.cc

    r1768 r1777  
    3434// Precompiled Headers
    3535#include "OrxonoxStableHeaders.h"
     36#include "util/MathConvert.h"
    3637#include "Orxonox.h"
    3738
     
    7778#include "Settings.h"
    7879
     80
    7981#define TestConv(nr, Type1, var1, Type2, res) \
    8082    Type1 var##nr##1##var1; \
     
    98100
    99101class FooBar { };
     102
     103inline 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
    100119
    101120
     
    212231    Factory::createClassHierarchy();
    213232
    214     Radian nmbr;
    215     float res;
     233    std::string nmbr;
     234    char res('a');
    216235    //const char* nmbr;
    217236    //const char* str;
    218     convertValue(&res, nmbr);
     237    convertValue(&nmbr, res);
    219238    //const unsigned int blah = 4;
    220239    //convertValue(nmbr, blah);
     
    226245    FooBar asdf;
    227246    std::string asdf2;
     247    std::ostringstream oss;
     248    char blah(' ');
     249    oss << blah;
    228250    std::cout << asdf2;
    229251    ConvertValue(&asdf2, asdf);
     252    //if (conversionTests::OStreamOperator<FooBar>::exists)
     253    //    int asdfasdfasdf = 7;
    230254    //COUT(3) << asdf;
    231255
Note: See TracChangeset for help on using the changeset viewer.