src/Basics/SinglePar.cc
// Additional functions name & state are public and found in file section B
Additional functions name & state are public and found in file section B
Additional functions name & state are public and found in file section B
void SinglePar::type(int Type)
  {
  if(Type == ParType) return;		
  switch(Type)				
    {
    case -1:				
      ParName  = string("");	
      ParData  = ParName;
      ParState = ParName;
      ParType = Type;
      break;
    case 0:				
      ParData = cutInt(ParData);	
      if(!ParData.length())
        ParData = string("0");
      ParType = Type;
      break;
    case 1:				
      ParData = cutDouble(ParData);	
      if(!ParData.length())
        ParData = string("0.0");
      ParType = Type;
      break;
    default:				
      ParType = Type;			
      break; 				
    }
  }
void SinglePar :: type ( int Type ) { if ( Type == ParType ) return ; switch ( Type ) { case -1 : ParName = string ( " " ) ; ParData = ParName ; ParState = ParName ; ParType = Type ; break ; case 0 : ParData = cutInt ( ParData ) ; if ( ! ParData . length ( ) ) ParData = string ( " " ) ; ParType = Type ; break ; case 1 : ParData = cutDouble ( ParData ) ; if ( ! ParData . length ( ) ) ParData = string ( " " ) ; ParType = Type ; break ; default : ParType = Type ; break ; } }
Additional functions name & state are public and found in file section B
Additional functions name & state are public and found in file section B
// Do nothing if no type change // Handle change on casewise // A Null parameter // so we need to have nothing else // An integer parameter // Insure data is integer // A double parameter // Insure data is double // We don't deal with morphing // another other more complicated // or user defined parameter types