Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / omitdef / Dumping.hh
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
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
This page took 0.069916 seconds and 5 git commands to generate.