#+TITLE: sdp structs #+AUTHOR: Ralph Amissah #+EMAIL: ralph.amissah@gmail.com #+STARTUP: indent #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+OPTIONS: author:nil email:nil creator:nil timestamp:nil #+PROPERTY: header-args :padline no :exports code :noweb yes #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+FILETAGS: :sdp:dev:ao: #+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) * structs :struct: [[./sdp.org][sdp]] ** initialize #+name: structs #+BEGIN_SRC d /+ structs +/ mixin template Structs() { struct ObjHeading { string type; string lev; string lvn; string lcn; } struct ObjPara { string indent_first; string indent_second; string bullet; } struct ObjComment { // does not have .attrib; // does not have .ocn } struct ObjBlock { } struct ObjBlockOcnString { // does not have .attrib; string node; } struct ObjComposite { // size_t id; string use; string of; string is_a; string object; string ocn; string attrib; // int ocn; ObjHeading heading; ObjPara para; ObjBlock block; ObjBlockOcnString block_ocn_string; } } #+END_SRC * tangles :tangle: ** code structure: :ao_structs.d: #+name: tangle_ao_structs #+BEGIN_SRC d :tangle ../lib/sdp/ao_structs.d /+ structs ao_structs.d +/ <> #+END_SRC