src/lib/uri.h
branchv_0
changeset 40 85b6f13f1088
child 41 12acb6c02d32
equal deleted inserted replaced
39:6ef41443211e 40:85b6f13f1088
       
     1 /**
       
     2  * Relational pipes
       
     3  * Copyright © 2021 František Kučera (Frantovo.cz, GlobalCode.info;
       
     4  *
       
     5  * This program is free software: you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License as published by
       
     7  * the Free Software Foundation, version 3 of the License.
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
       
    16  */
       
    17 #pragma once
       
    18 
       
    19 namespace relpipe {
       
    20 namespace in {
       
    21 namespace asn1 {
       
    22 namespace lib {
       
    23 
       
    24 // TODO: these strings will become globally unique URIs (or IRIs) after moving to alt2xml and relative/unprefixed names should also work
       
    25 
       
    26 /** general options of the ASN.1 parser */
       
    27 namespace option {
       
    28 static const char* Encoding = "encoding";
       
    29 static const char* ParseEncapsulated = "parse-encapsulated";
       
    30 }
       
    31 
       
    32 namespace encoding {
       
    33 static const char* ber = "BER";
       
    34 static const char* der = "DER";
       
    35 static const char* cer = "CER";
       
    36 static const char* xer = "XER";
       
    37 static const char* per = "PER";
       
    38 static const char* asn1 = "ASN.1"; // schema, model
       
    39 }
       
    40 
       
    41 /** options for configuring the stage where events from the ASN.1 parser are converted to SAX events or DOM building */
       
    42 namespace xml {
       
    43 static const char* TreeWithNamespaces = "tree-with-namespaces";
       
    44 static const char* TreeStyle = "tree-style";
       
    45 static const char* RootName = "root-name";
       
    46 
       
    47 static const char* XMLNS = "tag:globalcode.info,2018:alt2xml:TEMPORARY:asn1"; // not an option and might change, just preliminary namespace
       
    48 }
       
    49 
       
    50 }
       
    51 }
       
    52 }
       
    53 }