Reference to vars into structs at runtime
Posted on 1998-11-20
Hi guys!, well i'm implementing pseudo-SQL support in our corporate software, and there is no repository of structs definitions, and what I need is to inject SQL commands and transate them into internal messages, but the problem is
how do I resolve the ofset of a var into a struct by name?
I mean something like this
SELECT Name, Addr, Tel
WHERE Flg=0x006A AND ZIP=Zip.Get("2345")
the objects (Clients, ....) are hardware written into the proccess who parses the command, but I don't know how to resolve the names of the Clients struct into ofset struct, and of course, the type and the size.
I'm using gcc 2.7.2 on Linux, maybe there is some defined macros to resolve this, or will have to program a repository of objects and a composition of fields (with name, size, ofset,...).