Loading...
Searching...
No Matches
configuration_common.cpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25#include "configuration_common.hpp"
26
27namespace bitpit {
28
29namespace config {
30
37bool hasRootSection(SourceFormat format)
38{
39 if (format == SOURCE_FORMAT_XML) {
40 return true;
41 }
42
43 return false;
44}
45
52bool hasArraySupport(SourceFormat format)
53{
54 if (format == SOURCE_FORMAT_JSON) {
55 return true;
56 }
57
58 return false;
59}
60
61}
62
63}
bool hasArraySupport(SourceFormat format)
bool hasRootSection(SourceFormat format)
--- layout: doxygen_footer ---