Adds a model history to a model.
#include <stdio.h>
void printStatus(const char* message, int status)
{
printf("%s", message);
switch(status)
{
printf("succeeded");
break;
printf("invalid object");
break;
printf("operation failed");
break;
default:
printf("unknown");
break;
}
printf("\n");
}
int
main (int argc, char *argv[])
{
unsigned int errors;
if (argc != 3)
{
printf("\n"
" usage: addModelHistory <input-filename> <output-filename>\n"
"\n");
return 2;
}
if (errors > 0)
{
printf("Read Error(s):\n");
printf("Correct the above and re-run.\n");
}
else
{
int status;
printStatus("Status for addCreator: ", status);
printStatus("Set created date: ", status);
printStatus("Set modified date: ", status);
printStatus("Set model history: ", status);
}
return errors;
}