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

Function OPS_convertBinaryToText

SRC/interpreter/OpenSeesMiscCommands.cpp:1262–1273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260extern int textToBinary(const char *inputFilename, const char *outputFilename);
1261
1262int OPS_convertBinaryToText()
1263{
1264 if (OPS_GetNumRemainingInputArgs() < 2) {
1265 opserr << "ERROR incorrect # args - convertBinaryToText inputFile outputFile\n";
1266 return -1;
1267 }
1268
1269 const char *inputFile = OPS_GetString();
1270 const char *outputFile = OPS_GetString();
1271
1272 return binaryToText(inputFile, outputFile);
1273}
1274
1275int OPS_convertTextToBinary()
1276{

Callers 2

Calls 3

OPS_GetStringFunction · 0.70
binaryToTextFunction · 0.50

Tested by

no test coverage detected