aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_object_setter.d
blob: d52474ad6872de9839168ddd57e74fc13e9556a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/++
  object setter:
  setting of sisu objects for downstream processing
  ao_object_setter.d
+/
template ObjectSetter() {
  /+ structs +/
  struct HeadingAttrib {
    string lev                            = "9";
    int    heading_lev_markup             = 9;
    int    heading_lev_collapsed          = 9;
    int[]  closes_lev_collapsed           = [];
    int[]  closes_lev_markup              = [];
    int    array_ptr                      = 0;
    int    heading_array_ptr_segments     = 0;
  }
  struct ObjGenericComposite {
    // size_t id;
    string                 use                          = "";
    string                 is_of                        = "";
    string                 is_a                         = "";
    string                 text                         = "";
    string                 obj_cite_number              = "";
    string[]               anchor_tags                  = [];
    string                 marked_up_level              = "9";
    int[]                  closes_lev_collapsed         = [];
    int[]                  closes_lev_markup            = [];
    int                    indent_base                  = 0;
    int                    indent_hang                  = 0;
    bool                   bullet                       = false;
    string                 syntax                       = "";
    int                    ocn                          = 0;
    string                 segment_anchor_tag           = "";
    string                 segname_prev                 = "";
    string                 segname_next                 = "";
    int                    parent_lev_markup            = 0;
    int                    parent_ocn                   = 0;
    int[]                  ancestors                    = [];
    int                    heading_lev_markup           = 9;
    int                    heading_lev_collapsed        = 9;
    int[]                  heading_closes_lev_collapsed = [];
    int[]                  heading_closes_lev_markup    = [];
    string[]               heading_ancestors_text       = [ "", "", "", "", "", "", "", "", ];
    int                    heading_array_ptr            = 0;
    int                    ptr_doc_object               = 0;
    int                    ptr_html_segnames            = 0;
    int                    ptr_heading                  = 0;
    int                    array_ptr                    = 0;
    int                    heading_array_ptr_segments   = 0;
    string[]               lev4_subtoc                  = [];
    string[string][string] node;
    int[]                  dom_markedup                 = [ 0, 0, 0, 0, 0, 0, 0, 0,];
    int[]                  dom_collapsed                = [ 0, 0, 0, 0, 0, 0, 0, 0,];
  }
  struct TheObjects {
    ObjGenericComposite[] oca;
  }
}