Re: [nox-dev] Configuring a NOX component

2011-10-07 Thread Murphy McCauley
For Python components, it takes a single parameter, which is a dictionary.  
That dictionary has a key called "arguments", which then holds the commandline 
arguments that were specified along with the component.  I think the webserver 
component has an example of this.  I can't remember if a way to read config 
file entries was ever added.

For C++ components, it takes a pointer to a Configuration object, which has 
methods to retrieve commandline arguments and config file entries.  Take a look 
in component.hh for some specifics, and you can look in jsonmessenger.cc for an 
example.

Hope that helps.

-- Murphy

On Oct 7, 2011, at 8:26 AM, Shrutarshi Basu wrote:

> Hi,
> The Nox dev documentation says that I can write a configure() method to 
> configure a NOX component prior to installing but it doesn't say anything 
> about what the parameters to this method should be. I can't find a example 
> that actually uses the configure method. Can someone give me a sketch of what 
> a configure() method should look like (or point me to an example)? I'm 
> assuming that we're supposed to pass parameters to this configure() method 
> instead of directly to the component's init() method.
> Thanks,
> Shrutarshi
> 
> --
> Shrutarshi Basu
> Basus.me
> The ByteBaker -- because Computer Science is not about computers
> 
> ___
> nox-dev mailing list
> nox-dev@noxrepo.org
> http://noxrepo.org/mailman/listinfo/nox-dev

___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev


[nox-dev] Configuring a NOX component

2011-10-07 Thread Shrutarshi Basu
Hi,
The Nox dev documentation says that I can write a configure() method to
configure a NOX component prior to installing but it doesn't say anything
about what the parameters to this method should be. I can't find a example
that actually uses the configure method. Can someone give me a sketch of
what a configure() method should look like (or point me to an example)? I'm
assuming that we're supposed to pass parameters to this configure() method
instead of directly to the component's init() method.
Thanks,
Shrutarshi

--
Shrutarshi Basu
Basus.me
The ByteBaker  -- because Computer Science is not
about computers
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev