| 55 | OPS_Stream *opserrPtr = &sserr; |
| 56 | |
| 57 | int main(int argc, char **argv) |
| 58 | { |
| 59 | bool fail = false; |
| 60 | |
| 61 | // |
| 62 | // now create a domain and a modelbuilder |
| 63 | // and build the model |
| 64 | // |
| 65 | FEM_ObjectBroker theBroker; |
| 66 | Domain *theDomain = new Domain(); |
| 67 | |
| 68 | FileDatastore *theDatabase |
| 69 | = new FileDatastore("/tmp/database/test1",*theDomain,theBroker); |
| 70 | FileDatastore &theDb = *theDatabase; |
| 71 | |
| 72 | opserr << "TESTING IDs: \n"; |
| 73 | |
| 74 | ID id1(2); |
| 75 | id1(0) = 1; id1(1) = 1; |
| 76 | ID id0(2); |
| 77 | id0(0) = 0; id0(1) = 0; |
| 78 | ID id2(2); |
| 79 | id2(0) = 2; id2(1) = 2; |
| 80 | ID id3(2); |
| 81 | id3(0) = 3; id3(1) = 3; |
| 82 | ID id4(2); |
| 83 | id4(0) = 4; id4(1) = 4; |
| 84 | ID id5(2); |
| 85 | id5(0) = 5; id5(1) = 5; |
| 86 | ID id6(2); |
| 87 | id6(0) = 6; id6(1) = 6; |
| 88 | |
| 89 | |
| 90 | theDb.sendID(1,1,id1); |
| 91 | theDb.sendID(1,2,id2); |
| 92 | theDb.sendID(2,1,id3); |
| 93 | theDb.sendID(2,2,id4); |
| 94 | |
| 95 | opserr << "RESULTS\n"; |
| 96 | ID recvID(2); |
| 97 | theDb.recvID(1,1,recvID); |
| 98 | opserr << "1: " << recvID; |
| 99 | theDb.recvID(1,2,recvID); |
| 100 | opserr << "2: " << recvID; |
| 101 | theDb.recvID(2,1,recvID); |
| 102 | opserr << "3: " << recvID; |
| 103 | theDb.recvID(2,2,recvID); |
| 104 | opserr << "4: " << recvID; |
| 105 | |
| 106 | theDb.sendID(1,1,id1); |
| 107 | theDb.sendID(3,1,id3); |
| 108 | theDb.sendID(2,1,id2); |
| 109 | |
| 110 | |
| 111 | theDb.sendID(0,1,id0); |
| 112 | theDb.sendID(1,2,id1); |
| 113 | theDb.sendID(2,2,id2); |
| 114 | theDb.sendID(3,1,id3); |
nothing calls this directly
no test coverage detected