1 /*****************************************************************************/
2 /* 8888888 88888888 88888888 */
5 /* 8 88888888 88888888 */
8 /* 888888 888888888 888888888 */
10 /* A Two-Dimensional General Purpose Semiconductor Simulator. */
13 /* Last update: Sep 5, 2006 */
17 /* NINT, No.69 P.O.Box, Xi'an City, China */
19 /*****************************************************************************/
21 /* We need two streams for message output: screen and log file. */
22 /* Output Device Select */
34 extern char log_buf
[128];
35 extern void GSS_LOG();
40 stringstream str_buf
; //the string buf for out stream.
41 ofstream log_file
; //the file stream
43 void GSS_LOG_BEGIN(char *logfile
) { log_file
.open(logfile
,ofstream::out
| ofstream::trunc
); }
44 void GSS_LOG_END() { log_file
.close(); }
45 stringstream
& string_buf() { return str_buf
;}
51 log_file
<<str_buf
.str();
57 str_buf
.setf(ios::scientific
);
61 extern GSS_LOG_STREAM gss_log
;