Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 7, 2008, 3:29:25 AM (16 years ago)
Author:
landauf
Message:

Added getXXX() functions to MultiType, where XXX stands for any supported typename.
getString() replaces toString().
Like in getValue(type* pointer), the current value gets converted to the requested type. It's basically just a call to the convert-operator, so (1) "type a = mymultitype;", (2) "type a; mymultitype.getValue(&a);" and (3) "type a = get'Type'();" are equivalent, but the implicit cast (1) may be ambiguous.

Location:
code/branches/core3/src/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/core/CommandEvaluation.cc

    r1716 r1728  
    304304
    305305            if (command->defaultValueSet(i))
    306                 output += "=" + command->getDefaultValue(i).toString() + "]";
     306                output += "=" + command->getDefaultValue(i).getString() + "]";
    307307            else
    308308                output += "}";
  • code/branches/core3/src/core/ConfigValueContainer.cc

    r1720 r1728  
    6969        this->bIsVector_ = false;
    7070
    71         this->defvalueString_ = this->value_.toString();
     71        this->defvalueString_ = this->value_.getString();
    7272        this->update();
    7373    }
  • code/branches/core3/src/core/TclBind.cc

    r1594 r1728  
    115115
    116116        if (CommandExecutor::getLastEvaluation().hasReturnvalue())
    117             return CommandExecutor::getLastEvaluation().getReturnvalue().toString();
     117            return CommandExecutor::getLastEvaluation().getReturnvalue().getString();
    118118
    119119        return "";
  • code/branches/core3/src/core/TclThreadManager.cc

    r1682 r1728  
    519519
    520520                if (CommandExecutor::getLastEvaluation().hasReturnvalue())
    521                     output = CommandExecutor::getLastEvaluation().getReturnvalue().toString();
     521                    output = CommandExecutor::getLastEvaluation().getReturnvalue().getString();
    522522            }
    523523
Note: See TracChangeset for help on using the changeset viewer.