EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Who can help with dbLoadRecords()?
From: "Liyu, Andrei" <[email protected]>
To: tech talk <[email protected]>
Date: Mon, 01 May 2006 09:14:18 -0400
Good morning All,

	Any of you use dbLoadRecords( char * dbfile, char *
substitutions) or dbLoadTemplate(). 

	It's fine but I have another question :) Both functions read
file. I wouldn't catch your attention why I need something because it is
another area of distributed control system. Let say - I need function
	dbLoadRecordsNew( char * records, char * substitutions), where
records is usual db file.

	I looked into code and was very unhappy. dbLoadRecords comes to
dbReadDatabase( ... char * filename ...). That was written so far ... on
yacc (???). Basically, code hasn't comments and isn't self-documented.
Application Development doesn't give information too. I couldn't find
function like dbLoadRecordsNew. Is it correct?

	I thought a little and decided that way to write simple
dbLoadSingleRecord( char * record) function can be easier (then
understand dbReadDatabase() )

	I suppose that should be like
1. There is global variable DBBASE *pdbase that is root Epics DB.
(Manual writes that IOC can have some DBs ... = some pdbase. Is it
correct?)
So first is allocation DB root dbAllocBase()
2. Each record has entry in pdbase.
Call DBENTRY * dbAllocEntry(DBBASE *pdbase). That allocates memory for
entry (!= for record) (?) and link into root.
3. Allocate memory for record. Call malloc with according record?
4. Fill record structure
...
And IOCInit()

Has anybody knowledge? Can he help me a little?

Thanks, Andrei.


Replies:
Re: Who can help with dbLoadRecords()? Benjamin Franksen

Navigate by Date:
Prev: Re: asyn and Canberra TCA 2016 Tim Mooney
Next: Digitizer needed for LCLS Steve Lewis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: SNS reaches CD4 milestone!! Gurd, David P.
Next: Re: Who can help with dbLoadRecords()? Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024