File: __init__.py

package info (click to toggle)
exhale 0.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,616 kB
  • sloc: python: 9,057; cpp: 1,260; javascript: 915; f90: 29; ansic: 18; makefile: 16
file content (66 lines) | stat: -rw-r--r-- 2,176 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
"""
The ``cpp_dir_underscores`` test project.

It primarily exists to make sure directories with underscores in their titles
get the correct link and title names (since exhale uses underscores internally).
"""

from testing.hierarchies import clike, directory, file, namespace


def default_class_hierarchy_dict():
    """Return the default class hierarchy dictionar."""
    return {
        namespace("interface_alpha"): {
            clike("struct", "Alpha"): {},
            namespace("one_two_three"): {
                clike("struct", "OneTwoThree"): {},
            },
            namespace("four_five_six"): {
                clike("struct", "FourFiveSix"): {}
            }
        },
        namespace("interface_beta"): {
            clike("struct", "Beta"): {}
        }
    }


def default_file_hierarchy_dict():
    """Return the default file hierarchy dictionary."""
    return {
        directory("include"): {
            directory("interface_alpha"): {
                file("alpha.hpp"): {
                    namespace("interface_alpha"): {
                        clike("struct", "Alpha"): {},
                    }
                },
                directory("one_two_three"): {
                    file("one_two_three.hpp"): {
                        namespace("interface_alpha"): {
                            namespace("one_two_three"): {
                                clike("struct", "OneTwoThree"): {},
                            }
                        }
                    },
                },
                directory("__four_five_six__"): {
                    file("__four_five_six__.hpp"): {
                        namespace("interface_alpha"): {
                            namespace("four_five_six"): {
                                clike("struct", "FourFiveSix"): {}
                            }
                        }
                    }
                }
            },
            directory("interface_beta"): {
                file("beta.hpp"): {
                    namespace("interface_beta"): {
                        clike("struct", "Beta"): {}
                    }
                }
            }
        }
    }