Sync with 5.1.0
[deliverable/titan.core.git] / compiler2 / ttcn3 / BerAST.cc
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2014 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 #include "BerAST.hh"
9
10 const char* BerAST::encode_string[] = {
11 "BER_ENCODE_CER",
12 "BER_ENCODE_DER"
13 };
14
15 const char* BerAST::decode_string[] = {
16 "BER_ACCEPT_SHORT",
17 "BER_ACCEPT_LONG",
18 "BER_ACCEPT_INDEFINITE",
19 "BER_ACCEPT_DEFINITE",
20 "BER_ACCEPT_ALL"
21 };
22
23 BerAST::BerAST() :
24 encode_param(DER),
25 decode_param(ACCEPT_ALL)
26 {
27 }
28
29 const char* BerAST::get_encode_str() {
30 return encode_string[encode_param];
31 }
32
33 const char* BerAST::get_decode_str() {
34 return decode_string[decode_param];
35 }
This page took 0.030315 seconds and 5 git commands to generate.