/******************************************************************************
 * Copyright (c) 2000-2025 Ericsson Telecom AB
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors:
 *   Balasko, Jeno
 *   Raduly, Csaba
 *   Szabados, Kristof
 *
 ******************************************************************************/
#ifndef DUMPING_HH
#define DUMPING_HH

#include <string>

std::string dump( const TTCN_Buffer& buf );

template < typename T >
std::string dump( const T& t, const TTCN_Typedescriptor_t ty )
{
  TTCN_Buffer ttcnbuf;
  t.encode( ty, ttcnbuf, TTCN_EncDec::CT_BER, BER_ENCODE_DER );
  return dump( ttcnbuf );
}

#endif
