Changeset 22557


Ignore:
Timestamp:
03/18/18 14:28:21 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better echo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Params/IntVecParam.cpp

    r20827 r22557  
    5858/*}}}*/
    5959void IntVecParam::DeepEcho(void){/*{{{*/
    60 
    61         int i;
    62 
    63         _printf_("IntVecParam:\n");
    64         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    65         _printf_("   vector size: " << this->M << "\n");
    66         for(i=0;i<this->M;i++){
    67                 _printf_(i << " " << this->values[i] << "\n");
    68         }
     60        _printf_(setw(22)<<"   IntVecParam "<<setw(35)<<left<<EnumToStringx(this->enum_type)<<" [");
     61        for(int i=0;i<this->M;i++) _printf_(" "<<this->values[i]);
     62        _printf_("]\n");
    6963}
    7064/*}}}*/
    7165void IntVecParam::Echo(void){/*{{{*/
    7266
    73         _printf_("IntVecParam:\n");
    74         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    75         _printf_("   vector size: " << this->M << "\n");
    76 
     67        this->DeepEcho();
    7768}
    7869/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.