* [ECOS] Reading of ecos.db file
@ 2007-07-02 16:46 Puneet Maheshwari
2007-07-02 16:48 ` Andrew Lunn
0 siblings, 1 reply; 5+ messages in thread
From: Puneet Maheshwari @ 2007-07-02 16:46 UTC (permalink / raw)
To: ecos-discuss
Hi,
When we open the administration from the tools menu, it retrieves all
the packages from the ecos.db file. I am trying to find the function
which reads this file.
After lot of debugging I found the following function in interp.cxx file.
int result = Tcl_EvalFile(tcl_interp, CDL_TCL_CONST_CAST(char*,
script.c_str()));
Can anyone highlight me as to which function reads through the ecos.db file.
Thanks,
Puneet
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Reading of ecos.db file
2007-07-02 16:46 [ECOS] Reading of ecos.db file Puneet Maheshwari
@ 2007-07-02 16:48 ` Andrew Lunn
2007-07-02 16:55 ` Puneet Maheshwari
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2007-07-02 16:48 UTC (permalink / raw)
To: Puneet Maheshwari; +Cc: ecos-discuss
On Mon, Jul 02, 2007 at 10:46:23AM -0600, Puneet Maheshwari wrote:
> Hi,
>
> When we open the administration from the tools menu, it retrieves all
> the packages from the ecos.db file. I am trying to find the function
> which reads this file.
>
> After lot of debugging I found the following function in interp.cxx file.
> int result = Tcl_EvalFile(tcl_interp, CDL_TCL_CONST_CAST(char*,
> script.c_str()));
>
> Can anyone highlight me as to which function reads through the ecos.db
> file.
I could be wrong here, Bart is the expert....
the ecos.db is actually a piece of tcl! So it is not read, it is
executed by the tcl interpreter.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Reading of ecos.db file
2007-07-02 16:48 ` Andrew Lunn
@ 2007-07-02 16:55 ` Puneet Maheshwari
2007-07-02 17:27 ` Andrew Lunn
0 siblings, 1 reply; 5+ messages in thread
From: Puneet Maheshwari @ 2007-07-02 16:55 UTC (permalink / raw)
To: ecos-discuss
Then how does all the packages get stored in package_names
(type:std::vector<std::string>) defined in cdl.hxx file.
Thanks,
Regards,
Puneet
On 7/2/07, Andrew Lunn <andrew@lunn.ch> wrote:
> On Mon, Jul 02, 2007 at 10:46:23AM -0600, Puneet Maheshwari wrote:
> > Hi,
> >
> > When we open the administration from the tools menu, it retrieves all
> > the packages from the ecos.db file. I am trying to find the function
> > which reads this file.
> >
> > After lot of debugging I found the following function in interp.cxx file.
> > int result = Tcl_EvalFile(tcl_interp, CDL_TCL_CONST_CAST(char*,
> > script.c_str()));
> >
> > Can anyone highlight me as to which function reads through the ecos.db
> > file.
>
> I could be wrong here, Bart is the expert....
>
> the ecos.db is actually a piece of tcl! So it is not read, it is
> executed by the tcl interpreter.
>
> Andrew
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Reading of ecos.db file
2007-07-02 16:55 ` Puneet Maheshwari
@ 2007-07-02 17:27 ` Andrew Lunn
2007-07-02 18:44 ` Puneet Maheshwari
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2007-07-02 17:27 UTC (permalink / raw)
To: Puneet Maheshwari; +Cc: ecos-discuss
On Mon, Jul 02, 2007 at 10:55:06AM -0600, Puneet Maheshwari wrote:
> Then how does all the packages get stored in package_names
> (type:std::vector<std::string>) defined in cdl.hxx file.
New keywords are added to the tcl interpreter. Take a look at
host/libcdl/database.cxx.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Reading of ecos.db file
2007-07-02 17:27 ` Andrew Lunn
@ 2007-07-02 18:44 ` Puneet Maheshwari
0 siblings, 0 replies; 5+ messages in thread
From: Puneet Maheshwari @ 2007-07-02 18:44 UTC (permalink / raw)
To: Puneet Maheshwari, ecos-discuss
Hi,
In CdlPackagesDatabaseBody constructor it reads the package_names data
type.But where exactly it is loading this data type. Where are the
package names getting stored?
Thanks,
Regards,
Puneet
On 7/2/07, Andrew Lunn <andrew@lunn.ch> wrote:
> On Mon, Jul 02, 2007 at 10:55:06AM -0600, Puneet Maheshwari wrote:
> > Then how does all the packages get stored in package_names
> > (type:std::vector<std::string>) defined in cdl.hxx file.
>
> New keywords are added to the tcl interpreter. Take a look at
> host/libcdl/database.cxx.
>
> Andrew
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-02 18:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 16:46 [ECOS] Reading of ecos.db file Puneet Maheshwari
2007-07-02 16:48 ` Andrew Lunn
2007-07-02 16:55 ` Puneet Maheshwari
2007-07-02 17:27 ` Andrew Lunn
2007-07-02 18:44 ` Puneet Maheshwari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).