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
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
Has anybody knowledge? Can he help me a little?
- Re: Who can help with dbLoadRecords()? Benjamin Franksen
- Navigate by Date:
Re: asyn and Canberra TCA 2016 Tim Mooney
Digitizer needed for LCLS Steve Lewis
- Navigate by Thread:
SNS reaches CD4 milestone!! Gurd, David P.
Re: Who can help with dbLoadRecords()? Benjamin Franksen