Prints the notes strings for each element in a given model.
#include <iostream>
void printNotes(
SBase *sb,
const string&
id =
"")
{
string pid = id;
{
}
<< ") notes -----" << endl;
cout << endl;
}
int
main (int argc, char* argv[])
{
if (argc != 2)
{
cout << endl << "Usage: printNotes filename" << endl << endl;
return 1;
}
unsigned int i,j;
const char* filename = argv[1];
cout << endl;
cout << "filename: " << filename << endl;
cout << endl;
if(errors > 0)
{
delete document;
return errors;
}
printNotes(m);
{
printNotes(re);
{
}
{
}
{
}
{
printNotes(kl);
{
printNotes(pa);
}
}
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
}
{
printNotes(sp);
{
printNotes(const_cast<Trigger*>(tg));
}
{
printNotes(const_cast<Delay*>(dl));
}
{
printNotes(ea);
}
}
{
printNotes(sp);
}
{
printNotes(sp);
}
delete document;
return errors;
}