make the sidebar many part of the config
More...
|
| menu (node &n) |
|
void | makemenu (node &n, const std::string &space="", std::string path="", std::string rawpath="", bool found=false) |
|
make the sidebar many part of the config
Definition at line 551 of file hcg.cxx.
◆ menu()
Definition at line 555 of file hcg.cxx.
558 (*outp) <<
"#######################\n";
559 (*outp) <<
"# Output\n";
560 (*outp) <<
"#######################\n\n\n";
◆ makemenu()
void menu::makemenu |
( |
node & |
n, |
|
|
const std::string & |
space = "" , |
|
|
std::string |
path = "" , |
|
|
std::string |
rawpath = "" , |
|
|
bool |
found = false |
|
) |
| |
|
inline |
always try to remap the name
Definition at line 567 of file hcg.cxx.
574 if (
n.name()==
"top_level" )
print =
true;
590 std::string newspacer = space;
594 std::string output_name =
find(
n.name());
598 if (
path==
"" )
path += output_name;
599 else path +=
"/" + output_name;
600 if ( rawpath==
"" ) rawpath +=
n.name();
601 else rawpath +=
"/" +
n.name();
608 if (
print ) (*outp) << space <<
"output " << output_name <<
" {" <<
"\n";
610 for (
unsigned i=0 ;
i<
n.size() ;
i++ ) {
614 if (
print ) (*outp) << space <<
"}\n";
The documentation for this class was generated from the following file:
std::map< std::string, int > dirs
list of directories to be explicitly included, together with corresponding depths of subdirectories