Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4625 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 13, 2005, 8:48:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: default Values should work now even better

Location:
orxonox/trunk/src/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/load_param.cc

    r4624 r4625  
    5656  if (LoadClassDescription::parametersDescription)
    5757  {
    58       //! \todo this must only be done once for each class.
    59       // locating the class
     58    // locating the class
    6059    this->classDesc = LoadClassDescription::addClass(object->getClassName());
    6160
     
    222221      if (i > 0)
    223222        PRINT(3)(", ");
    224       PRINT(3)("%s", this->defaultValues[i]);
     223      if (!strcmp(this->types[i], l_STRING_NAME))
     224      { // leave brackets !!
     225        PRINT(3)("\"%s\"", this->defaultValues[i]);
     226      }
     227      else
     228      {
     229        PRINT(3)("%s", this->defaultValues[i]);
     230      }
    225231    }
    226232    PRINT(3)(")");
  • orxonox/trunk/src/util/loading/load_param.h

    r4624 r4625  
    213213// Pointer TYPE
    214214/**
    215    \brief a Macro to easily implement many different Constructors for the LoadParam-Class with 1 argument
     215   \brief a Macro to easily implement many different Constructors for the LoadParam-Class with one Pointer argument
    216216   \param type1 The type of the Pointer
    217217 */
     
    346346
    347347  LoadParam(const TiXmlElement* root, const char* paramName, T* pt2Object, void(T::*function)(const TiXmlElement*), bool multi = false)
    348   : BaseLoadParam(root, pt2Object, paramName, 1, multi, NULL, "XML-Element")
     348  : BaseLoadParam(root, pt2Object, paramName, 1, multi, NULL, "XML")
    349349  {
    350350    if (root != NULL)
Note: See TracChangeset for help on using the changeset viewer.