yml2/pEp_message_include.ysl2
author Dirk Zimmermann <dz@pep.security>
Fri, 15 Mar 2019 16:14:50 +0100
branchIOS-1475_exp_dirk_001
changeset 897 a1c583ffca0e
parent 368 bd89f3ec04f0
permissions -rw-r--r--
IOS-1475 PEPSync as session factory.
     1 include yslt.yml2
     2 
     3 tstylesheet {
     4   template "/" {
     5     apply "class", 0
     6   }
     7 
     8   template "class" {//document "{@name}Base.h" {
     9     | //
    10     | //  «@name».h
    11     | //  pEpObjCAdapter
    12     | //
    13     | //  Created by Dirk Zimmermann on 10.11.17.
    14     | //  Copyright © 2017 p≡p. All rights reserved.
    15     | //
    16     |
    17     | #import <Foundation/Foundation.h>
    18     |
    19     | #import "PEPSessionProtocol.h"
    20     |
    21     | @interface PEPIdentity : NSObject
    22     |
    23     apply "property"
    24     |
    25     |
    26     | @end
    27   }
    28 
    29   template "property" {
    30     choose {
    31       when "@nullability"
    32         | @property (nonatomic, «@nullability») «@type» «@name»;
    33       otherwise
    34         | @property (nonatomic) «@type» «@name»;
    35     }
    36   }
    37 }
    38