| 132 | } |
| 133 | |
| 134 | int |
| 135 | DataOutputDatabaseHandler::write(Vector &data) |
| 136 | { |
| 137 | int result = 0; |
| 138 | |
| 139 | if (data.Size() == numColumns) |
| 140 | if (theDatabase != 0) |
| 141 | result = theDatabase->insertData(tableName, columns, commitTag, data); |
| 142 | else { |
| 143 | opserr << "DataOutputStreamHandler::write() - database has not been set\n"; |
| 144 | return -1; |
| 145 | } |
| 146 | else { |
| 147 | opserr << "DataOutputStreamHandler::write() - Vector not of correct size or open() has not been called\n" << numColumns << " " << data.Size() << endln; |
| 148 | return -1; |
| 149 | } |
| 150 | |
| 151 | commitTag++; |
| 152 | |
| 153 | return result; |
| 154 | } |
| 155 | |
| 156 | int |
| 157 | DataOutputDatabaseHandler::setDatabase(FE_Datastore &database, const char *tName) |
nothing calls this directly
no test coverage detected