Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2008, 3:29:16 AM (16 years ago)
Author:
landauf
Message:

config-values are working again, now with a totally reworked ConfigValueContainer using MultiTypes (this commit is just a bugfix, the major work was done before, see r792)

added << operator to std::ostream for all MultiTypes

File:
1 edited

Legend:

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

    r794 r797  
    7676        void setValue(const MultiTypeString& mtp);
    7777
    78         inline std::string& getString() { return this->string_; }
     78        inline std::string& getString()    { return this->string_; }
     79        inline const char*  getConstChar() { return this->string_.c_str(); }
    7980
    8081        using MultiTypePrimitive::getValue;
    81         inline void getValue(std::string* variable) const { (*variable) = std::string(this->string_); }
     82        inline void getValue(std::string* variable) const { (*variable) = this->string_; }
     83        inline void getValue(const char** variable) const { (*variable) = this->string_.c_str(); }
    8284
    8385    protected:
     
    8587};
    8688
     89std::ostream& operator<<(std::ostream& out, MultiTypeString& mts);
     90
    8791#endif /* _MultiTypeString_H__ */
Note: See TracChangeset for help on using the changeset viewer.