Changeset 523 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/logger.h
- Timestamp:
- May 1, 2008, 11:03:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/logger.h
r522 r523 84 84 inline void basic_dbg_streambuf<char>::dbg_out(const char *str) 85 85 { 86 ofstream ofs( ( saveFilePath ).c_str(),ios_base::app );86 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::app ); 87 87 ofs << "[" << (count++) << "] " << str ; 88 88 ofs.close(); … … 100 100 { 101 101 public: 102 basic_dbg_ostream( const st ring &saveFilePath, bool isOptionEnabled )102 basic_dbg_ostream( const std::string &saveFilePath, bool isOptionEnabled ) 103 103 : std::basic_ostream<Ch_T, Tr_T>(new basic_dbg_streambuf<Ch_T, Tr_T>(saveFilePath,isOptionEnabled)) 104 104 { 105 ofstream ofs( ( saveFilePath ).c_str(),ios_base::trunc );105 std::ofstream ofs( ( saveFilePath ).c_str(), std::ios_base::trunc ); 106 106 ofs.close(); 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.