/*static*/ Object * FileIO::GetObjectFromFile(FILE * file, bool extended/*= false*/)
{
char buffer[256];
+ char textBuffer[65536];
int foundLayer = 0;
/*int num =*/ fscanf(file, "%s", buffer);
Object * obj = NULL;
fscanf(file, "(%lf,%lf) %lf, %lf, %lf", &p.x, &p.y, &r, &a1, &a2);
obj = (Object *)new Arc(p, r, a1, a2);
}
+ else if (strcmp(buffer, "TEXT") == 0)
+ {
+ Point p;
+ fscanf(file, "(%lf,%lf) \"%[^\"]\"", &p.x, &p.y, textBuffer);
+ obj = (Object *)new Text(p, textBuffer);
+ }
else if (strcmp(buffer, "DIMENSION") == 0)
{
Point p1, p2;
{
objectFileType = OTFEndOfFile;
}
+ else
+ printf("Unknown object type '%s'...\n", buffer);
if (obj != NULL)
{