Changeset 16653


Ignore:
Timestamp:
11/07/13 09:06:28 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better Echo formatting

Location:
issm/trunk-jpl/src/c/classes
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Inputs/BoolInput.cpp

    r16486 r16653  
    4040void BoolInput::DeepEcho(void){
    4141
    42         _printf_("BoolInput:\n");
    43         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    44         _printf_("   value: " <<(value?"true":"false") << "\n");
     42        _printf_("   BoolInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<(value?"true":"false") << "\n");
    4543}
    4644/*}}}*/
  • issm/trunk-jpl/src/c/classes/Inputs/ControlInput.cpp

    r16486 r16653  
    6868
    6969        _printf_("ControlInput:\n");
    70         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
     70        _printf_("   ControlInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<"\n");
    7171        _printf_("---values: \n");     if (values)      values->Echo();
    7272        _printf_("---savedvalues: \n");if (savedvalues) savedvalues->Echo();
  • issm/trunk-jpl/src/c/classes/Inputs/DoubleInput.cpp

    r16486 r16653  
    4040void DoubleInput::DeepEcho(void){
    4141
    42         _printf_("DoubleInput:\n");
    43         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    44         _printf_("   value: " << this->value << "\n");
     42        _printf_("   DoubleInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4543}
    4644/*}}}*/
  • issm/trunk-jpl/src/c/classes/Inputs/IntInput.cpp

    r16486 r16653  
    3535void IntInput::DeepEcho(void){
    3636
    37         _printf_("IntInput:\n");
    38         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    39         _printf_("   value: " << (int)this->value << "\n");
     37        _printf_("   IntInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4038}
    4139/*}}}*/
  • issm/trunk-jpl/src/c/classes/Inputs/PentaInput.cpp

    r16486 r16653  
    5050void PentaInput::DeepEcho(void){
    5151
    52         _printf_("PentaInput:\n");
    53         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    54         _printf_("   values: [");
     52        _printf_("   PentaInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" [");
    5553        for(int i=0;i<this->NumberofNodes();i++) _printf_(" "<<this->values[i]);
    5654        _printf_("]\n");
  • issm/trunk-jpl/src/c/classes/Inputs/SegInput.cpp

    r16434 r16653  
    5050void SegInput::DeepEcho(void){
    5151
    52         _printf_("SegInput:\n");
    53         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    54         _printf_("   values: [");
     52        _printf_("   SegInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" [");
    5553        for(int i=0;i<this->NumberofNodes();i++) _printf_(" "<<this->values[i]);
    5654        _printf_("]\n");
  • issm/trunk-jpl/src/c/classes/Inputs/TriaInput.cpp

    r16486 r16653  
    5050void TriaInput::DeepEcho(void){
    5151
    52         _printf_("TriaInput:\n");
    53         _printf_("   enum: " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    54         _printf_("   values: [");
     52        _printf_("   TriaInput "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" [");
    5553        for(int i=0;i<this->NumberofNodes();i++) _printf_(" "<<this->values[i]);
    5654        _printf_("]\n");
  • issm/trunk-jpl/src/c/classes/Params/BoolParam.cpp

    r16233 r16653  
    4343void BoolParam::DeepEcho(void){
    4444
    45         _printf_("BoolParam:\n");
    46         _printf_("   enum:  " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    47         _printf_("   value: " <<(this->value?"true":"false") << "\n");
     45        _printf_("   BoolParam "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<(value?"true":"false")<<"\n");
    4846}
    4947/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/DoubleParam.cpp

    r16233 r16653  
    4040void DoubleParam::DeepEcho(void){
    4141
    42         _printf_("DoubleParam:\n");
    43         _printf_("   enum:  " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    44         _printf_("   value: " << this->value << "\n");
     42        _printf_("   DoubleParam "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4543}
    4644/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/FileParam.cpp

    r16233 r16653  
    4343void FileParam::DeepEcho(void){
    4444
    45         _printf_("FileParam:\n");
    46         _printf_("   enum:  " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    47         _printf_("   value: " << this->value << "\n");
     45        _printf_("   FileParam "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4846}
    4947/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/IntParam.cpp

    r16233 r16653  
    4343void IntParam::DeepEcho(void){
    4444
    45         _printf_("IntParam:\n");
    46         _printf_("   enum:  " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    47         _printf_("   value: " << this->value << "\n");
     45        _printf_("   IntParam "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4846}
    4947/*}}}*/
  • issm/trunk-jpl/src/c/classes/Params/StringParam.cpp

    r16233 r16653  
    4444/*FUNCTION StringParam::DeepEcho{{{*/
    4545void StringParam::DeepEcho(void){
    46         _printf_("StringParam:\n");
    47         _printf_("   enum:  " << this->enum_type << " (" << EnumToStringx(this->enum_type) << ")\n");
    48         _printf_("   value: " << this->value << "\n");
     46        _printf_("   StringParam "<<setw(25)<<left<<EnumToStringx(this->enum_type)<<" "<<this->value<<"\n");
    4947}
    5048/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.