#include <iostream>
static bool verbose = false;
using std::cout;
static void
printIndent(int indent)
{
while (indent > 0)
{
cout << " ";
indent--;
}
}
static void
{
printIndent(indent);
if (input)
cout <<
" is wired to " << input->
getName();
cout << "\n";
printNode(out, node, indent+1);
}
static void
{
int i, nkids;
for (i = 0; i < nkids; i++)
{
printNode(node, 0, indent);
}
for (i = 0; i < nkids; i++)
{
{
{
printIndent(indent+1);
cout << kidnet->
getName() <<
" contains:\n";
printNetwork(kidnet, indent+2);
}
}
}
}
int
{
verbose = true;
for (
int i = 1; i < args.
argc(); i++)
{
if (verbose)
cout << "Loading: " << filename << "\n";
filename,
true,
nullptr,
false,
warnings_or_errors);
if (!success)
{
std::cerr << "Error loading network for " << filename << ":\n";
std::cerr << warnings_or_errors.
c_str() <<
"\n";
}
else if (verbose && warnings_or_errors.
isstring())
{
std::cerr << "Warnings loading network for " << filename << ":\n";
std::cerr << warnings_or_errors.
c_str() <<
"\n";
}
}
if (verbose)
cout << "Traversing the HIP file(s)\n";
printNetwork(boss);
return 0;
}