Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 27, 2008, 5:04:41 PM (17 years ago)
Author:
landauf
Message:

XMLPort uses now executors and has default-values.

Location:
code/branches/core2/src/util
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/util/Math.h

    r871 r933  
    2626 */
    2727
    28 #ifndef _Math_H__
    29 #define _Math_H__
     28#ifndef _Util_Math_H__
     29#define _Util_Math_H__
    3030
    3131#include <ostream>
     
    146146}
    147147
    148 #endif /* _Math_H__ */
     148#endif /* _Util_Math_H__ */
  • code/branches/core2/src/util/MultiTypeMath.cc

    r925 r933  
    8888}
    8989
    90 MultiTypeMath::operator orxonox::BaseObject*() const
    91 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypeMath, void*>(*this); }
    9290MultiTypeMath::operator void*() const
    9391{ return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypeMath, void*>(*this); }
  • code/branches/core2/src/util/MultiTypeMath.h

    r925 r933  
    9191        bool operator!=(const MultiTypeMath& mtm) const;
    9292
    93         virtual operator orxonox::BaseObject*()          const;
    9493        virtual operator void*()                const;
    9594        virtual operator int()                  const;
  • code/branches/core2/src/util/MultiTypePrimitive.cc

    r925 r933  
    134134}
    135135
    136 MultiTypePrimitive::operator orxonox::BaseObject*() const
    137 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypePrimitive, void*>(*this); }
    138136MultiTypePrimitive::operator void*() const
    139137{ return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypePrimitive, void*>(*this); }
  • code/branches/core2/src/util/MultiTypePrimitive.h

    r925 r933  
    105105        bool operator!=(const MultiTypePrimitive& mtp) const;
    106106
    107         virtual operator orxonox::BaseObject*()    const;
     107        template <class T>
     108        operator T*()                     const
     109        { return ((T*)this->value_.void_); }
    108110        virtual operator void*()          const;
    109111        virtual operator int()            const;
  • code/branches/core2/src/util/MultiTypeString.cc

    r931 r933  
    6565}
    6666
    67 MultiTypeString::operator orxonox::BaseObject*() const
    68 { return (this->type_ == MT_void) ? (orxonox::BaseObject*)this->value_.void_ : (orxonox::BaseObject*)ConvertValueAndReturn<MultiTypeString, void*>(*this); }
    6967MultiTypeString::operator void*() const
    7068{ return (this->type_ == MT_void) ? this->value_.void_ : ConvertValueAndReturn<MultiTypeString, void*>(*this); }
  • code/branches/core2/src/util/MultiTypeString.h

    r925 r933  
    7979        bool operator!=(const MultiTypeString& mts) const;
    8080
    81         virtual operator orxonox::BaseObject*() const;
    8281        virtual operator void*()                const;
    8382        virtual operator int()                  const;
  • code/branches/core2/src/util/String.h

    r871 r933  
    2626 */
    2727
    28 #ifndef _String_H__
    29 #define _String_H__
     28#ifndef _Util_String_H__
     29#define _Util_String_H__
    3030
    3131#include <string>
     
    144144};
    145145
    146 #endif /* _String_H__ */
     146#endif /* _Util_String_H__ */
Note: See TracChangeset for help on using the changeset viewer.