Filter and Friends Config Handling as of Feb 2008

Status of the scaled down project described in an earlier document.

Functions

Add information to MOOT


    /** Given an sbs key and list of packages of interest, record
        sbs key and information about all constituents  
     */
    unsigned registerConstituents(unsigned sbsResolved, 
                                  std::vector& pkgs,
                                  const std::string& dir="cdm");

Status: Written and debugged, but perhaps not in final form.

Queries


    /** Given key in the Constituents table, return
        information MOOT has stored */
    getConstituentInfo(unsigned constKey, ConstituentInfo& info);
    
    /** Same as above but input is an FMX logical key */
    getConstituentInfoByLogical(unsigned logKey, ConstituentInfo& info);

    /** Similar to above but for all constituents known by MOOT to be
        associated with Secondary Boot Script specified by its logical
        fmx key */
    getConstituentsBySBS(unsigned sbsLogical, 
                         std::vector& info);

    /** Similar to above but only for constituents belonging to 
        specified package */
    getConstituentsBySBS(unsigned sbsLogical, const std::string pkg,
                         std::vector& info);
Status: Not done but should be straightforward and quick. Are there other queries to be written?

What this does to MOOD

In action

After two calls to registerConstituents, one with an inappropriate value for sbsResolved (95) and another with a good value (9214), requesting constituents belonging to packages GFC_DB, XFC_DB and LPA_DB, 6 rows were added to FSW_inputs. Some earlier rows are included in the image to show how the fields are used:

FSW_input entries

and four entries were made in Constituents:

Constituents entries


Initial draft: 29 Feb 2008
Last revised:
J. Bogart jumping