X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffileio.cpp;h=27ed4f3c3ccec27eacee2403c6bc0b891863c5f3;hb=db0a3d91f37031e155cc8eac7cfdec9889f233ee;hp=931c5131653b64b89069ec995d67e6305fc25345;hpb=6c1279871f6bb86bc59e2561b6a7f74ab081f71e;p=architektonas diff --git a/src/fileio.cpp b/src/fileio.cpp index 931c513..27ed4f3 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -19,11 +19,12 @@ #include #include #include -#include "arc.h" -#include "circle.h" -#include "container.h" -#include "dimension.h" -#include "line.h" +//#include "arc.h" +//#include "circle.h" +//#include "container.h" +//#include "dimension.h" +//#include "line.h" +#include "structs.h" /* How to handle connected objects @@ -125,7 +126,7 @@ enum ObjectTypeFile { OTFContainer, OTFContainerEnd, OTFLine, OTFCircle, OTFArc, 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; @@ -149,7 +150,7 @@ enum ObjectTypeFile { OTFContainer, OTFContainerEnd, OTFLine, OTFCircle, OTFArc, 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 containerStack; Container * currentTopContainer = drawing;//new Container(Vector(0, 0)); Object * object; @@ -199,6 +200,7 @@ enum ObjectTypeFile { OTFContainer, OTFContainerEnd, OTFLine, OTFCircle, OTFArc, /*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); @@ -290,5 +292,8 @@ if (errno) (*object)->layer = foundLayer; return recognized; +#else + return false; +#endif }