POV-Ray : Newsgroups : povray.programming : How do I use the new INI and command line option system in POVRay 3.5? : Re: How do I use the new INI and command line option system in POVRay 3.5? Server Time
28 Jul 2024 06:27:52 EDT (-0400)
  Re: How do I use the new INI and command line option system in POVRay 3.5?  
From: Thorsten Froehlich
Date: 24 Oct 2002 06:07:38
Message: <3db7c66a@news.povray.org>
In article <3db7bac0@news.povray.org> , Lee Begg <lln### [at] paradisenetnz>  
wrote:

> That is what I have been doing.  There is no central place of this code... I
> think I see bits of it across atleast 5 files.

Not really.  There is a structure to it.  First you add a new kPOVAttrib_xxx
constant in povmsgid.h, then you enter the constant and its option names in
either or both of the tables Ini_Parser_Tab and/or Cmd_Parser_Table, where
as you may guess from the existing order, order matters.  Unless you need
kUseSpecialHandler optin.cpp will then do the parsing for you.  Now you only
have to receive the message in povmsrec.cpp and turn it into the internal
state.  To be able to send the data, extract it from the internal state in
povmsend.cpp .  That is all.

> I guess I will muddle though it... but I would have thought that either the
> POVRay developers would be helpful, or atleast some patch developers might
> expalain how they when about it.

Well, as the whole code is not documented, that is how it works when
"learning" POV-Ray.

> What do you do in terms of POVRay development?  Are you upset because you
> are in the same boat (trying to figure out what to do with only the code to
> help?)

No, I wrote that code :-)  There are many places that are not documented,
not just this part (also this part is documented, just not publicly).  One
just has to get used to it.  And occasionally a change may break something
else.  One gets over this setback and fixes the problem; and moves on.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.