MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / write

Method write

SRC/handler/DataOutputDatabaseHandler.cpp:134–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134int
135DataOutputDatabaseHandler::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
156int
157DataOutputDatabaseHandler::setDatabase(FE_Datastore &database, const char *tName)

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
insertDataMethod · 0.45

Tested by

no test coverage detected