Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2008, 1:29:47 AM (16 years ago)
Author:
landauf
Message:

several changes:

  • XMLPort is now theoretically able to load something (but still buggy)
  • Expanded Convert with several partial template specializations
  • Expanded all MultiTypes with new functions, mostly to convert values
  • Expanded SubString with a new functionality: chars inside parentheses aren't split

It's not yet working as it should (at least not in all cases - loading the objects name works)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/util/MultiTypeString.h

    r834 r848  
    7171        bool operator!=(const MultiTypeString& mtp) const;
    7272
    73         inline operator std::string() const { return this->string_;         }
    74         inline operator const char*() const { return this->string_.c_str(); }
     73        operator std::string() const;
     74        operator const char*() const;
    7575
    7676        using MultiTypePrimitive::setValue;
     
    7979        void setValue(const MultiTypeString& mtp);
    8080
    81         inline std::string& getString()    { return this->string_;         }
    82         inline const char*  getConstChar() { return this->string_.c_str(); }
     81        inline const std::string getString() const { return this->string_;         }
     82        inline const char*  getConstChar()   const { return this->string_.c_str(); }
     83
     84        inline const std::string& getString() { return this->string_;         }
     85        inline const char*  getConstChar()    { return this->string_.c_str(); }
    8386
    8487        using MultiTypePrimitive::getValue;
    8588        inline void getValue(std::string* variable) const { (*variable) = this->string_;         }
    8689        inline void getValue(const char** variable) const { (*variable) = this->string_.c_str(); }
     90
     91        std::string toString() const;
     92        bool fromString(const std::string value);
    8793
    8894    protected:
Note: See TracChangeset for help on using the changeset viewer.