[+ autogen5 template +] /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * [+ProjectName+][+IF (=(get "Headings") "1")+] * Copyright (C) [+AuthorName+] [+(shell "date +%Y")+] <[+AuthorEmail+]>[+ENDIF+] * [+CASE (get "License") +] [+ == "BSD" +][+(bsd (get "ProjectName") (get "AuthorName") " * ")+] [+ == "LGPL" +][+(lgpl (get "ProjectName") (get "AuthorName") " * ")+] [+ == "GPL" +][+(gpl (get "ProjectName") " * ")+] [+ESAC+] */ #ifndef _[+ (string-upcase(string->c-name!(get "HeaderFile"))) +]_ #define _[+ (string-upcase(string->c-name!(get "HeaderFile"))) +]_ class [+ClassName+][+IF (not (=(get "BaseClass") ""))+]: [+Inheritance+] [+BaseClass+] [+ENDIF+] { [+FOR var IN public protected private+][+ var+]: [+ FOR Elements +][+ IF (=(get "Scope") (get "var")) +] [+ CASE (get "Implementation")+][+ == "normal"+][+ == "static"+]static [+ == "virtual"+]virtual [+ ESAC+][+ IF (not (=(get "Type") "")) +][+Type+] [+ENDIF+][+ Name+][+ Arguments+][+ IF (and(=(get "Inline") "1") (not(=(get "Arguments") "")))+] { /* TODO: Add implementation here */ }[+ ELSE+];[+ ENDIF+] [+ ENDIF+][+ ENDFOR+] [+ ENDFOR+]}; #endif // _[+ (string-upcase(string->c-name!(get "HeaderFile"))) +]_