Application Design Ideas
-
I write CAD software. I use C++. I am not very good at it!:( And I have a question.:) My software is need to manage, say, n number of AutoCAD files as one project. I extract the same kind of information from each drawing and keep it in another file for future use. I call this resulting files my Project file. From each drawing file I extract data that can be fit into a structure that looks like this:
typedef float point[2]; struct FileData{ char FileName[MAX_SIZE]; int ElementHandles[A][B]; point ElementLocation[A][B]; }
A project can have any number of files. I am currently using a vector of type FileData to store my info at runtime and write data to the project files as memory mapped file when I am done processing. How do you guys suggest I do it? Any other ideas? Abhishek -- modified at 6:38 Tuesday 27th June, 2006