src/GamIO/XWinOutd.cc
// ____________________________________________________________________________
// ii                 XWinNMR Outd File Default Parmameters
// ____________________________________________________________________________
ii                 XWinNMR Outd File Default Parmameters
ii XWinNMR Outd File Default Parmameters
void XWinOutd::SetDefaults()
  {
  oname     = "outd";
  _TITLE    = "Parameter File,  Version XWIN-NMR  GAMMA";
  _JCAMPDX  = "5.0";
  _DATATYPE = "Parameter Values";
  time_t longtime;              
  longtime = 0;        
#ifdef _MSC_VER
	struct tm newtime;
  localtime_s(&newtime,&longtime);
	char date[31];
	asctime_s(date, 30, &newtime);
  _DATE = date;
#else
  struct tm *ptr;                For setting current date
  ptr = localtime(&longtime);
  _DATE = asctime(ptr);
#endif
  _CURPLOT = string("hpdj550");	 Default plotter
  _CURPRIN = string("$hpdj550c"); The default printer
  _DFORMAT = "normdp";		 The default format
  _LFORMAT = "normlp";		 The default format
  _PFORMAT = "normpl"; 		 The default format
  _SURQMSG = 1;			 
  }
void XWinOutd :: SetDefaults ( ) { oname = " " ; _TITLE = " " ; _JCAMPDX = " " ; _DATATYPE = " " ; time_t longtime ; longtime = 0 ; #ifdef _MSC_VER struct tm newtime ; localtime_s ( & newtime , & longtime ) ; char date [ 31 ] ; asctime_s ( date , 30 , & newtime ) ; _DATE = date ; #else struct tm * ptr ; ptr = localtime ( & longtime ) ; _DATE = asctime ( ptr ) ; #endif _CURPLOT = string ( " " ) ; _CURPRIN = string ( " " ) ; _DFORMAT = " " ; _LFORMAT = " " ; _PFORMAT = " " ; _SURQMSG = 1 ; }
____________________________________________________________________________
ii                 XWinNMR Outd File Default Parmameters
____________________________________________________________________________
____________________________________________________________________________ ii XWinNMR Outd File Default Parmameters ____________________________________________________________________________
// Need a time structure // // For setting current date // Default plotter // The default printer // The default format // The default format // The default format // 