src/Basics/SinglePar.cc
/* These routines are used for writing out a single parameter into an output
   stream.  The format is set for easy viewing but is NOT compatibile with
   GAMMA parameter format.  That is, this is good for output but not I/O.

        // Input             par  : Parameter (this)
        // 		     ostr : An output stream
        // Output            ostr : The output stream, modified to 
        //                          contain the information about
	//			    the parameter                            */
These routines are used for writing out a single parameter into an output
stream.  The format is set for easy viewing but is NOT compatibile with
GAMMA parameter format.  That is, this is good for output but not I/O.

Input             par  : Parameter (this)
ostr : An output stream
Output            ostr : The output stream, modified to
contain the information about
the parameter
These routines are used for writing out a single parameter into an output stream . The format is set for easy viewing but is NOT compatibile with GAMMA parameter format . That is this is good for output but not I / O . Input par : Parameter ( this ) ostr : An output stream Output ostr : The output stream modified to contain the information about the parameter
vector<string> SinglePar::printStrings() const
  {
  vector<string> PStrings;
  if(ParType != -1)
    {
    PStrings.push_back(string("Parameter: ")  + ParName);
    string st;
    switch(ParType)
      {
      case 0:  st = string("Integer (0)");    break;
      case 1:  st = string("Double (1)");     break;
      case 2:  st = string("String (2)");     break;
      case 3:  st = string("Coordinate (3)"); break;
      case 4:  st = string("Tensor (4)");     break;
      default: st = string("Unknown (")
                  + Gdec(ParType) + string(")");
      }
    PStrings.push_back(string("  Type   - ") + st);
    PStrings.push_back(string("  Data   - ") + ParData);
    PStrings.push_back(string("  State  - ") + ParState);
    }
  else
    PStrings.push_back(string("Parameter: Empty"));
  return PStrings;
  }
vector < string > SinglePar :: printStrings ( ) const { vector < string > PStrings ; if ( ParType != -1 ) { PStrings . push_back ( string ( " " ) + ParName ) ; string st ; switch ( ParType ) { case 0 : st = string ( " " ) ; break ; case 1 : st = string ( " " ) ; break ; case 2 : st = string ( " " ) ; break ; case 3 : st = string ( " " ) ; break ; case 4 : st = string ( " " ) ; break ; default : st = string ( " " ) + Gdec ( ParType ) + string ( " " ) ; } PStrings . push_back ( string ( " " ) + st ) ; PStrings . push_back ( string ( " " ) + ParData ) ; PStrings . push_back ( string ( " " ) + ParState ) ; } else PStrings . push_back ( string ( " " ) ) ; return PStrings ; }
These routines are used for writing out a single parameter into an output
stream.
These routines are used for writing out a single parameter into an output stream .