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.cc

    r794 r797  
    8181    this->value_ = mts.value_;
    8282}
     83
     84std::ostream& operator<<(std::ostream& out, MultiTypeString& mts)
     85{
     86    if (mts.isA(MT_constchar))
     87        out << mts.getConstChar();
     88    else if (mts.isA(MT_string))
     89        out << mts.getString();
     90    else
     91        out << ((MultiTypePrimitive)mts);
     92
     93    return out;
     94}
Note: See TracChangeset for help on using the changeset viewer.