Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 20, 2006, 9:49:13 AM (18 years ago)
Author:
bensch
Message:

calling static functions again out of the Shell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/load_param_description.cc

    r9776 r9777  
    5656
    5757/**
    58  *  prints out this parameter, its input method and the description (if availiable)
     58 * @brief prints out this parameter, its input method and the description (if availiable)
     59 * @param stream the stream to print to.
     60 * @param withComments if the comments should be appended.
    5961 */
    60 void LoadParamDescription::print() const
     62void LoadParamDescription::print(FILE* stream, bool withComments) const
    6163{
    62   PRINT(0)(" <%s>", this->_name.c_str());
     64  fprintf(stream, " <%s>", this->_name.c_str());
    6365  for (unsigned int i = 0; i < this->_parameterCount; i++)
    6466  {
    6567    if (i > 0)
    66       PRINT(0)(",");
    67     PRINT(0)("%s", this->_types[i].c_str());
     68      fprintf(stream, ",");
     69    fprintf(stream, "%s", this->_types[i].c_str());
    6870  }
    69   PRINT(0)("</%s>", this->_name.c_str());
     71  fprintf(stream, "</%s>", this->_name.c_str());
    7072  if (!this->_description.empty())
    71     PRINT(0)(" <!-- %s", this->_description.c_str());
     73    fprintf(stream, " <!-- %s", this->_description.c_str());
    7274  // default values
    7375  if (this->_parameterCount > 0)
    7476  {
    75     PRINT(0)(" (Default: ");
     77    fprintf(stream, " (Default: ");
    7678    for (unsigned int i = 0; i < this->_parameterCount; i++)
    7779    {
    7880      if (i > 0)
    79         PRINT(0)(", ");
     81        fprintf(stream, ", ");
    8082      if (this->_types[i] == "string")
    8183      { // leave brackets !!
    82         PRINT(0)("\"%s\"", this->_defaultValues[i].c_str());
     84        fprintf(stream, "\"%s\"", this->_defaultValues[i].c_str());
    8385      }
    8486      else
    8587      {
    86         PRINT(0)("%s", this->_defaultValues[i].c_str());
     88        fprintf(stream, "%s", this->_defaultValues[i].c_str());
    8789      }
    8890    }
    89     PRINT(0)(")");
     91    fprintf(stream, ")");
    9092  }
    9193  if (!this->_description.empty() || this->_parameterCount > 0)
    92     PRINT(0)(" -->");
     94    fprintf(stream, " -->");
    9395
    94   PRINT(0)("\n");
     96  fprintf(stream, "\n");
    9597}
    9698
Note: See TracChangeset for help on using the changeset viewer.