- Timestamp:
- 01/09/08 10:22:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/LogWriter.cpp
r2576 r2580 7 7 8 8 9 LogWriter::LogWriter() 10 { 11 } 12 13 14 LogWriter::LogWriter(const std::string &filename): mFilename(filename) 15 { 16 } 17 18 9 19 void LogWriter::SetFilename(const std::string &filename) 10 20 { … … 13 23 14 24 15 void LogWriter::Write(ofstream &myfile, const int numSamples, const ViewCellInfoContainer &infos) 25 void LogWriter::Write(//ofstream &myfile, 26 const int numSamples, const ViewCellInfoContainer &infos) 16 27 { 28 ofstream myfile; 29 myfile.open(mFilename.c_str()); 30 31 if (!myfile.is_open()) 32 myfile.open(mFilename.c_str()); 33 17 34 ViewCellInfoContainer::const_iterator vit, vit_end = infos.end(); 18 35 … … 25 42 } 26 43 27 44 /* 28 45 void LogWriter::Write(const ViewCellHistoryContainer &hist) 29 46 { 30 ofstream myfile; 31 47 //ofstream myfile; 32 48 //char filename[64]; 33 49 //sprintf(filename, "%s %06d", mFilename.c_str(), numSamples); 34 50 //myfile.open(filename); 35 myfile.open(mFilename.c_str()); 51 if (!mFile.is_open()) 52 mFile.open(mFilename.c_str()); 36 53 37 54 ViewCellHistoryContainer::const_iterator vit, vit_end = hist.end(); … … 39 56 // number of samples 40 57 //myfile << "samples: " << numSamples << endl; 41 m yfile << (int)hist.size() << endl;58 mFile << (int)hist.size() << endl; 42 59 43 60 for (vit = hist.begin(); vit != vit_end; ++ vit) … … 47 64 } 48 65 66 */ 67 49 68 }
Note: See TracChangeset
for help on using the changeset viewer.