40 static bool verbose =
false;
45 printIndent(
int indent)
60 cout <<
" is wired to " << input->
getName();
65 printNode(out, node, indent+1);
79 for (i = 0; i < nkids; i++)
86 printNode(node, 0, indent);
92 for (i = 0; i < nkids; i++)
101 printIndent(indent+1);
102 cout << kidnet->
getName() <<
" contains:\n";
103 printNetwork(kidnet, indent+2);
123 for (
int i = 1; i < args.
argc(); i++)
129 cout <<
"Loading: " << filename <<
"\n";
138 std::cerr <<
"Error loading network for " << filename <<
":\n";
139 std::cerr << warnings_or_errors.
c_str() <<
"\n";
141 else if (verbose && warnings_or_errors.
isstring())
143 std::cerr <<
"Warnings loading network for " << filename <<
":\n";
144 std::cerr << warnings_or_errors.
c_str() <<
"\n";
149 cout <<
"Traversing the HIP file(s)\n";
GT_API const UT_StringHolder filename
int getNchildren() const override
OP_API OP_Director * OPsetDirector(OP_Director *boss)
bool loadOrMergeHipFile(const char *file_name, bool merge, const char *pattern, bool overwrite, UT_String &warnings_or_errors)
int theMain(int argc, char *argv[])
PI_API void PIcreateResourceManager(bool verbose=true)
OP_Node * getChild(const char *name=0, int *hint=0) const override
void stripOptions(const char *options)
const char * c_str() const
virtual unsigned nInputs() const
virtual int isNetwork() const
SYS_FORCE_INLINE const UT_String & getName() const
**If you just want to fire and args
void initialize(int argc, const char *const argv[])