| 10056 | } |
| 10057 | |
| 10058 | Transaction* Attachment::remoteTransactionInterface(ITransaction* apiTra) |
| 10059 | { |
| 10060 | if (!apiTra) |
| 10061 | return NULL; |
| 10062 | |
| 10063 | LocalStatus ls; |
| 10064 | CheckStatusWrapper dummy(&ls); |
| 10065 | ITransaction* valid = apiTra->validate(&dummy, this); |
| 10066 | if (!valid) |
| 10067 | return NULL; |
| 10068 | |
| 10069 | // If validation is successfull, this means that this attachment and valid transaction |
| 10070 | // use same provider. I.e. the following cast is safe. |
| 10071 | return static_cast<Transaction*>(valid); |
| 10072 | } |
| 10073 | |
| 10074 | static void cleanDpb(ClumpletWriter& dpb, const ParametersSet* tags) |
| 10075 | { |
no test coverage detected