added any2unistr predefined function (artf724008)
[deliverable/titan.core.git] / compiler2 / ttcn3 / BerAST.cc
CommitLineData
d44e3c4f 1/******************************************************************************
2 * Copyright (c) 2000-2016 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 * Contributors:
9 * Balasko, Jeno
10 * Zalanyi, Balazs Andor
11 *
12 ******************************************************************************/
970ed795
EL
13#include "BerAST.hh"
14
15const char* BerAST::encode_string[] = {
16 "BER_ENCODE_CER",
17 "BER_ENCODE_DER"
18};
19
20const char* BerAST::decode_string[] = {
21 "BER_ACCEPT_SHORT",
22 "BER_ACCEPT_LONG",
23 "BER_ACCEPT_INDEFINITE",
24 "BER_ACCEPT_DEFINITE",
25 "BER_ACCEPT_ALL"
26};
27
28BerAST::BerAST() :
29 encode_param(DER),
30 decode_param(ACCEPT_ALL)
31{
32}
33
34const char* BerAST::get_encode_str() {
35 return encode_string[encode_param];
36}
37
38const char* BerAST::get_decode_str() {
39 return decode_string[decode_param];
40}
This page took 0.02602 seconds and 5 git commands to generate.