[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libredwg] iterator methods

From: Till Heuschmann
Subject: Re: [libredwg] iterator methods
Date: Mon, 15 Feb 2010 18:24:45 +0100

It would be great to eliminate the need to compare the version. After loading the file the in memory representation should be alike. Generally we can clean some structs e.g. the size field of a handle is just useful when reading it from file.

2010/2/15 Felipe Sanches <address@hidden>
I have just git pushed a fix to our iterator routines.

These routines allow the application to loop through all owned objects of a group (BLOCK)

The functions are:

Dwg_Object* get_first_owned_object(Dwg_Object* hdr_obj, Dwg_Object_BLOCK_HEADER* hdr);
Dwg_Object* get_next_owned_object(Dwg_Object* hdr_obj, Dwg_Object* current, Dwg_Object_BLOCK_HEADER* hdr);

During the development of it I have noticed that we are storing version info in several places in our data structures. We should redesign it so that version of the DWG file being processed is stored in a single place.

-Felipe Sanches

reply via email to

[Prev in Thread] Current Thread [Next in Thread]