#include <stdlib.h>
#include <string.h>
#include <vector>
-#include "arc.h"
-#include "circle.h"
-#include "container.h"
-#include "dimension.h"
-#include "line.h"
+#include "structs.h"
/*
How to handle connected objects
*/
-enum ObjectTypeFile { OTFContainer, OTFContainerEnd, OTFLine, OTFCircle, OTFArc, OTFDimension,
- OTFPolygon, OTFText, OTFImage, OTFBlock, OTFEndOfFile };
+enum ObjectTypeFile { OTFContainer, OTFContainerEnd, OTFLine, OTFCircle, OTFArc,
+ OTFDimension, OTFPolygon, OTFText, OTFImage, OTFBlock, OTFEndOfFile };
/*static*/ bool FileIO::SaveAtnsFile(FILE * file, Container * object)
enumerates all objects within itself. */
fprintf(file, "ARCHITEKTONAS DRAWING V1.0\n");
-#if 1
+#if 0
object->Enumerate(file);
fprintf(file, "END\n");
return true;
add objects to it until an "endContainer" marker is found. This will require a
stack to maintain the current Container. */
-#if 1
+#if 0
std::vector<Container *> containerStack;
Container * currentTopContainer = drawing;//new Container(Vector(0, 0));
Object * object;
/*static*/ bool FileIO::GetObjectFromFile(FILE * file, Object * parent, Object ** object, int * objectType)
{
+#if 0
char buffer[256];
int foundLayer = 0;
int num = fscanf(file, "%s", buffer);
(*object)->layer = foundLayer;
return recognized;
+#else
+ return false;
+#endif
}