src/uri.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 12 Dec 2020 19:52:38 +0100
branchv_0
changeset 5 bee7acb57330
parent 4 372b161669e4
child 8 7c85dc9a310b
permissions -rw-r--r--
implement --writer-option allow-sections false (flat key=value output)

/**
 * Relational pipes
 * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info;
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

namespace relpipe {
namespace out {
namespace ini {

// TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work

/** general options of the INI writer */
namespace option {
// TODO: „allow sections“ vs. „enable sections“, see also relpipe-in-ini
static const wchar_t* AllowSections = L"allow-sections";
static const wchar_t* HierarchySeparator = L"hierarchy-separator";
// static const wchar_t* AllowSectionTags = L"allow-section-tags";
// static const wchar_t* AllowSubKeys = L"allow-sub-keys";
static const wchar_t* CommentSeparatorForSections = L"comment-separator-for-sections";
static const wchar_t* CommentSeparatorForEntries = L"comment-separator-for-entries";
static const wchar_t* CommentSeparatorStandalone = L"comment-separator-standalone";
static const wchar_t* KeyValueSeparator = L"key-value-separator";
static const wchar_t* QuotesTypeForSections = L"quotes-type-for-sections";
static const wchar_t* QuotesTypeForKeys = L"quotes-type-for-keys";
static const wchar_t* QuotesTypeForValues = L"quotes-type-for-values";
static const wchar_t* QuotesPatternForSections = L"quotes-pattern-for-sections";
static const wchar_t* QuotesPatternForKeys = L"quotes-pattern-for-keys";
static const wchar_t* QuotesPatternForValues = L"quotes-pattern-for-values";
static const wchar_t* Dialect = L"dialect";
}

/** names of dynamically registered escaping processors; they are also options */
namespace escaping {
static const wchar_t* Basic = L"escape-basic";
static const wchar_t* JavaProperties = L"escape-java-properties";
static const wchar_t* Backspace = L"escape-backspace";
}

/** not options but a values of the quotes-type-for-* options */
namespace quoting {
static const wchar_t* None = L"none";
static const wchar_t* Apostrophes = L"apostrophes";
static const wchar_t* Quotes = L"quotes";
}

/** not options but a values of the dialect option */
namespace dialect {
static const wchar_t* JavaProperties = L"java-properties";
static const wchar_t* JavaManifestMF = L"java-manifest-mf";
}

}
}
}