src/JavaManifestMFDialect.h
author František Kučera <franta-hg@frantovo.cz>
Fri, 26 Aug 2022 22:42:04 +0200
branchv_0
changeset 11 4becf8474975
parent 5 bee7acb57330
permissions -rw-r--r--
fix typo: enbaled → enabled (thanks Jiří Wolker for reporting)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
#include "Dialect.h"
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
#include "uri.h"
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
namespace relpipe {
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
namespace out {
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
namespace ini {
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
class INIWriter;
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
class JavaManifestMFDialect : public Dialect {
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
public:
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
	void apply(INIWriter& writer) override {
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
		writer.setOption(option::Dialect, dialect::JavaProperties);
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
		writer.setOption(option::KeyValueSeparator, L": ");
5
bee7acb57330 implement --writer-option allow-sections false (flat key=value output)
František Kučera <franta-hg@frantovo.cz>
parents: 3
diff changeset
    34
		writer.setOption(option::HierarchySeparator, L"-");
3
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
	}
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
};
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
}
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
}
ae8775e0bc7a configurable/modular dialects and escaping
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
}