yml2/pEp_message_include.ysl2
author Dirk Zimmermann <dirk@pep-project.org>
Wed, 04 Jul 2018 13:21:53 +0200
changeset 638 f67f4bd9e683
parent 368 bd89f3ec04f0
permissions -rw-r--r--
IOS-1143 no more PEPObjHolder (Backed out changeset 08e538c4c945)
     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