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 ///////////////////////////////////////////////////////////////////////////////
9 #include "../../common/memory.h"
13 void JsonAST::init_JsonAST()
21 JsonAST::JsonAST(const JsonAST
*other_val
)
24 if (NULL
!= other_val
) {
25 omit_as_null
= other_val
->omit_as_null
;
26 alias
= (NULL
!= other_val
->alias
) ? mcopystr(other_val
->alias
) : NULL
;
27 as_value
= other_val
->as_value
;
28 default_value
= (NULL
!= other_val
->default_value
) ? mcopystr(other_val
->default_value
) : NULL
;
38 void JsonAST::print_JsonAST() const
40 printf("\n\rOmit encoding: ");
42 printf("as null value\n\r");
44 printf("skip field\n\r");
47 printf("Name as %s\n\r", alias
);
50 printf("Encoding unions as JSON value\n\r");
53 printf("Default value: %s\n\r", default_value
);
This page took 0.033523 seconds and 6 git commands to generate.