Re: connecting to PostgreSQL database

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Wed, 19 Jul 2006 07:11:32 -0230


Hello Christian,

Christian Holm Christensen <cholm_at_nbi.dk> writes:

> Hi Roger,
>
> On Tue, 2006-07-18 at 09:46 -0230, Roger Mason wrote:
>> Hi Christian,
>>
>> Christian Holm Christensen <cholm_at_nbi.dk> writes:
>>
>>>> I have seen the examples in the tutorials but they are for MySQL and
>> >> Oracle.
>> >
>> > The SQL database interface of ROOT uses the plug-in architecture.
>> > Hence, if you have the appropriate plug-in and setting in your rootrc
>> > file, all you need to do is
>>
>> I'm not sure what you mean here. Could you expand?
>
> In many real-life examples, what you want to do is something like
>
> * `I want to open a connection to a database'
> * `I want to read a file of this format'
> * `I want to get access to this remote file server'
> * `I want to make a simulation of my detector'
> * `I want to do a discrete fast fourier transform of may spectrum'
>
> and last but not least
>
> * `I want to fit my data to this function'
>
> For these cases, and many others, there may exist competing
> implementation out on the information super high-way - most of them not
> compatible with each other. Object-Oriented Programming offers a nice
> way to abstract the tasks mention above into common interface via
> inheritance. For example
>
> struct Simulation
> {
> enum Type
> {
> kGeant3,
> kGeant4,
> ...
> };
> static Simulation* Create(Type type)
> {
> switch (type) {
> case kGeant3: return new Geant3;
> case kGeant4: return new Geant4;
> ...
> }
> return 0;
> }
> bool Run();
> bool Event();
> bool MakePrimary();
> bool PropagatePrimary();

....

Thanks ever so much for taking time to explain.

Best wishes,

Roger Received on Wed Jul 19 2006 - 11:41:45 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:00 MET