| 73 | |
| 74 | |
| 75 | DataFileStream::~DataFileStream() |
| 76 | { |
| 77 | if (fileOpen == 1) |
| 78 | theFile.close(); |
| 79 | |
| 80 | if (theChannels != 0) { |
| 81 | delete [] theChannels; |
| 82 | } |
| 83 | |
| 84 | if (indentString != 0) |
| 85 | delete [] indentString; |
| 86 | |
| 87 | if (fileName != 0) |
| 88 | delete [] fileName; |
| 89 | |
| 90 | if (sendSelfCount > 0) { |
| 91 | for (int i=0; i<=sendSelfCount; i++) { |
| 92 | if (theColumns != 0) |
| 93 | if (theColumns[i] != 0) |
| 94 | delete theColumns[i]; |
| 95 | |
| 96 | if (theData != 0) |
| 97 | if (theData[i] != 0) |
| 98 | delete [] theData[i]; |
| 99 | |
| 100 | if (theRemoteData != 0) |
| 101 | if (theRemoteData[i] != 0) |
| 102 | delete theRemoteData[i]; |
| 103 | |
| 104 | } |
| 105 | |
| 106 | if (theData != 0) delete [] theData; |
| 107 | if (theRemoteData != 0) delete [] theRemoteData; |
| 108 | if (theColumns != 0) delete [] theColumns; |
| 109 | if (sizeColumns != 0) delete sizeColumns; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | int |
| 114 | DataFileStream::setFile(const char *name, openMode mode) |