| 1505 | |
| 1506 | |
| 1507 | int |
| 1508 | H5DRMLoadPattern::sendSelf(int commitTag, Channel & theChannel) |
| 1509 | { |
| 1510 | |
| 1511 | H5DRMout << "sending filename: " << dataset_fname << endl; |
| 1512 | |
| 1513 | static Vector data(3); |
| 1514 | data(0) = cFactor; |
| 1515 | data(1) = crd_scale; |
| 1516 | data(2) = distance_tolerance; |
| 1517 | |
| 1518 | char drmfilename[H5DRM_MAX_FILENAME]; |
| 1519 | strcpy(drmfilename, dataset_fname.c_str()); |
| 1520 | Message filename_msg(drmfilename, H5DRM_MAX_FILENAME); |
| 1521 | |
| 1522 | if (theChannel.sendMsg(0, 0, filename_msg) < 0) |
| 1523 | { |
| 1524 | cerr << "H5DRMLoadPattern::sendSelf - error sending filename_msg\n"; |
| 1525 | return -1; |
| 1526 | } |
| 1527 | |
| 1528 | if (theChannel.sendVector(0, 0, data) < 0) |
| 1529 | { |
| 1530 | cerr << "H5DRMLoadPattern::sendSelf -- error sending data\n"; |
| 1531 | return -1; |
| 1532 | } |
| 1533 | |
| 1534 | |
| 1535 | return 0; |
| 1536 | } |
| 1537 | |
| 1538 | int |
| 1539 | H5DRMLoadPattern::recvSelf(int commitTag, Channel & theChannel, |
nothing calls this directly
no test coverage detected