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

Function OPS_printCrdTransf

SRC/coordTransformation/CrdTransf.cpp:78–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78void OPS_printCrdTransf(OPS_Stream &s, int flag) {
79 if (flag == OPS_PRINT_PRINTMODEL_JSON) {
80 s << "\t\t\"crdTransformations\": [\n";
81 MapOfTaggedObjectsIter theObjects = theCrdTransfObjects.getIter();
82 theObjects.reset();
83 TaggedObject *theObject;
84 int count = 0;
85 int numComponents = theCrdTransfObjects.getNumComponents();
86 while ((theObject = theObjects()) != 0) {
87 CrdTransf *theTransf = (CrdTransf *)theObject;
88 theTransf->Print(s, flag);
89 if (count < numComponents-1)
90 s << ",\n";
91 count++;
92 }
93 s << "\n\t\t]";
94 }
95}
96
97ID OPS_getAllCrdTransfTags() {
98

Callers 2

PrintMethod · 0.85
PrintMethod · 0.85

Calls 4

getIterMethod · 0.45
resetMethod · 0.45
getNumComponentsMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected