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