Commit | Line | Data |
---|---|---|
970ed795 | 1 | /////////////////////////////////////////////////////////////////////////////// |
3abe9331 | 2 | // Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | // All rights reserved. This program and the accompanying materials |
4 | // are made available under the terms of the Eclipse Public License v1.0 | |
5 | // which accompanies this distribution, and is available at | |
6 | // http://www.eclipse.org/legal/epl-v10.html | |
7 | /////////////////////////////////////////////////////////////////////////////// | |
8 | #ifndef DUMPING_HH | |
9 | #define DUMPING_HH | |
10 | ||
11 | #include <string> | |
12 | ||
13 | std::string dump( const TTCN_Buffer& buf ); | |
14 | ||
15 | template < typename T > | |
16 | std::string dump( const T& t, const TTCN_Typedescriptor_t ty ) | |
17 | { | |
18 | TTCN_Buffer ttcnbuf; | |
19 | t.encode( ty, ttcnbuf, TTCN_EncDec::CT_BER, BER_ENCODE_DER ); | |
20 | return dump( ttcnbuf ); | |
21 | } | |
22 | ||
23 | #endif |