GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V0-0-2
Constituent: lrd_parser     Tag: linux-gcc
#include "error_p.h"
#include "files_p.h"
#include "fileUtils_p.h"
#include "lString_p.h"
#include <string.h>
#include <stdlib.h>
Include dependency graph for files.c:
Enumerations | |
enum | { IS_IMPL = 0, IS_HEADER = 1 } |
enum | { INITIAL_STACK_LIMIT = 8 } |
Functions | |
void | init_filerimType (FilerimType *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_filerimType (FilerimType *file, const char *name) |
Add the compoment name to the list of names held in the structure. | |
void | sreg_filerimType (FilerimType *file) |
NO-OP. | |
void | sfld_filerimType (FilerimType *file) |
NO_OP. | |
void | ereg_filerimType (FilerimType *file) |
NO_OP. | |
void | ecpt_filerimType (FilerimType *file) |
NO_OP. | |
void | fini_filerimType (FilerimType *file) |
Write out an array of component name strings using the list of strings held in the structure, then close the file. | |
void | init_fileTypeEnum (FileTypeEnum *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileTypeEnum (FileTypeEnum *file, const char *name) |
Add the component name to the list of held in the file structure. | |
void | sreg_fileTypeEnum (FileTypeEnum *file) |
NO_OP. | |
void | sfld_fileTypeEnum (FileTypeEnum *file) |
NO_OP. | |
void | ereg_fileTypeEnum (FileTypeEnum *file) |
NO_OP. | |
void | ecpt_fileTypeEnum (FileTypeEnum *file) |
NO_OP. | |
void | fini_fileTypeEnum (FileTypeEnum *file) |
Write out an enumeration of the component types using the list held in the file structure, then close the file. | |
void | init_fileRegEnum (FileRegEnum *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileRegEnum (FileRegEnum *file) |
NO_OP. | |
void | sreg_fileRegEnum (FileRegEnum *file) |
NO_OP. | |
void | sfld_fileRegEnum (FileRegEnum *file) |
NO_OP. | |
void | ereg_fileRegEnum (FileRegEnum *file) |
NO_OP. | |
void | ecpt_fileRegEnum (FileRegEnum *file, L_head *enums) |
Write out an enumeration of the registers within a component. | |
void | fini_fileRegEnum (FileRegEnum *file) |
Close the file. | |
void | init_fileFldEnum (FileFldEnum *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileFldEnum (FileFldEnum *file) |
NO_OP. | |
void | sreg_fileFldEnum (FileFldEnum *file, const char *cptName, const char *regName) |
Start an enumeration of the fields inside this register, begining with a special "register" field that represents the whole register. | |
void | sfld_fileFldEnum (FileFldEnum *file, const char *cptName, const char *regName, const char *fldName, unsigned nFld) |
Write out an enumeration for the field. | |
void | ereg_fileFldEnum (FileFldEnum *file) |
Finish off the enumeration. | |
void | ecpt_fileFldEnum (FileFldEnum *file) |
NO_OP. | |
void | fini_fileFldEnum (FileFldEnum *file) |
Close the file. | |
void | init_fileDescription (FileDescription *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileDescription (FileDescription *file, const char *name) |
Add the component name to the list held in the file structure. | |
void | sreg_fileDescription (FileDescription *file, const char *cptName, const char *regName, unsigned regWidth) |
Start an array of Field Descriptions for this register, begining with the special "register" field that holds the whole register. | |
void | sfld_fileDescription (FileDescription *file, unsigned width, unsigned offset) |
Add an element to the array of Field Descriptions for this field. | |
void | ereg_fileDescription (FileDescription *file) |
Close out the array of Field Descriptions. | |
void | ecpt_fileDescription (FileDescription *file, L_head *regs, const char *name, unsigned regWidth, unsigned nReg) |
Write out the Register and Component Descriptions. | |
void | fini_fileDescription (FileDescription *file) |
Write out an array of Component Descriptions to complete the LAT description and close the file. | |
void | init_fileXMLTags (FileXMLTags *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileXMLTags (FileXMLTags *file) |
NO_OP. | |
void | sreg_fileXMLTags (FileXMLTags *file, const char *cptName, const char *regName) |
Print out the structure defining the XML tag for this register. | |
void | sfld_fileXMLTags (FileXMLTags *file, const char *cptName, const char *regName, const char *fldName) |
Print out the structure defining the XML tag for this field. | |
void | ereg_fileXMLTags (FileXMLTags *file, const char *cptName, const char *regName) |
Print out the array of children for this register and the register tag. | |
void | ecpt_fileXMLTags (FileXMLTags *file, L_head *children, const char *tag, const char *base_name) |
Print out the structures defining the XML tags associated with this component. | |
void | fini_fileXMLTags (FileXMLTags *file) |
Finish off the XML vocabulary for the rim_parser by writing out an array of tags that are children of the document element, the base tags. | |
void | init_fileXMLDTD (FileXMLDTD *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileXMLDTD (FileXMLDTD *file, const char *base_name) |
If this component has no parent then base_name is not NULL and should be added the list of base tags. | |
void | sreg_fileXMLDTD (FileXMLDTD *file, L_head *cptDtd, const char *regName) |
Add this register to the list of elements contained by the parent component. | |
void | sfld_fileXMLDTD (FileXMLDTD *file, const char *fldName) |
Add the field name to the list of field names held in the file structure and add an XML element declaration to the list of field elements held in this structure. | |
void | ereg_fileXMLDTD (FileXMLDTD *file, const char *regName) |
Add a declaration of the register element to the list of strings making up the DTD. | |
void | ecpt_fileXMLDTD (FileXMLDTD *file, const char *cptName, L_head *dtdCpt, unsigned multi) |
Write out the component portion of the DTD. | |
void | fini_fileXMLDTD (FileXMLDTD *file) |
Write out the complete DTD and close the file. | |
void | init_fileMapTags (FileMapTags *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileMapTags (FileMapTags *file) |
NO_OP. | |
void | sreg_fileMapTags (FileMapTags *file) |
NO_OP. | |
void | sfld_fileMapTags (FileMapTags *file) |
NO_OP. | |
void | ereg_fileMapTags (FileMapTags *file) |
NO_OP. | |
void | ecpt_fileMapTags (FileMapTags *file, L_head *children, const char *tag, const char *base_name) |
Print out the structures defining the Map tags associated with this component. | |
void | fini_fileMapTags (FileMapTags *file) |
Finish off the Map vocabulary for the rim_parser by writing out an array of tags that are children of the document element, the base tags. | |
void | init_fileMapDTD (FileMapDTD *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileMapDTD (FileMapDTD *file, const char *base_name) |
If this component has no parent then base_name is not NULL and should be added the list of base tags. | |
void | sreg_fileMapDTD (FileMapDTD *file) |
NO_OP. | |
void | sfld_fileMapDTD (FileMapDTD *file) |
NO_OP. | |
void | ereg_fileMapDTD (FileMapDTD *file) |
NO_OP. | |
void | ecpt_fileMapDTD (FileMapDTD *file, const char *cptName, L_head *dtdCpt) |
Write out the component portion of the DTD. | |
void | fini_fileMapDTD (FileMapDTD *file) |
Write out the complete DTD and close the file. | |
void | init_fileTree_c (FileTree_c *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileTree_c (FileTree_c *file, const char *name) |
Add the component name to the list held in the file structure. | |
void | sreg_fileTree_c (FileTree_c *file) |
NO_OP. | |
void | sfld_fileTree_c (FileTree_c *file) |
NO_OP. | |
void | ereg_fileTree_c (FileTree_c *file) |
NO_OP. | |
void | ecpt_fileTree_c (FileTree_c *file) |
NO_OP. | |
void | fini_fileTree_c (FileTree_c *file) |
Write out the initTree function and close the file. | |
void | init_fileTree_h (FileTree_h *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileTree_h (FileTree_h *file, const char *name) |
Add the component name to the list held in the file structure. | |
void | sreg_fileTree_h (FileTree_h *file) |
NO_OP. | |
void | sfld_fileTree_h (FileTree_h *file) |
NO_OP. | |
void | ereg_fileTree_h (FileTree_h *file) |
NO_OP. | |
void | ecpt_fileTree_h (FileTree_h *file) |
NO_OP. | |
void | fini_fileTree_h (FileTree_h *file) |
Write out the RIMtree structure and close the file. | |
void | init_fileNumber (FileNumber *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileNumber (FileNumber *file, const char *name, unsigned multi) |
Add the name and maximum ID for this component to the lists held in the file structure and update the array describing the acceptable ranges of the address indicies. | |
void | sreg_fileNumber (FileNumber *file) |
NO_OP. | |
void | sfld_fileNumber (FileNumber *file) |
NO_OP. | |
void | ereg_fileNumber (FileNumber *file) |
NO_OP. | |
void | ecpt_fileNumber (FileNumber *file) |
Peel back the hierarchy by decrementing the index and clearing one element of the addrRng array. | |
void | fini_fileNumber (FileNumber *file) |
Write out the eumerations giving the number of LAT components and an array connnecting these enums to the LAT component types, then close the file. | |
void | init_fileAddr (FileAddr *file) |
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists. | |
void | scpt_fileAddr (FileAddr *file, unsigned multi) |
Adds the address range to the list. | |
void | sreg_fileAddr (FileAddr *file) |
NO_OP. | |
void | sfld_fileAddr (FileAddr *file) |
NO_OP. | |
void | ereg_fileAddr (FileAddr *file) |
NO_OP. | |
void | ecpt_fileAddr (FileAddr *file) |
Decrements the index indicating depth in the hierarchy and clears the relevant addr bit. | |
void | fini_fileAddr (FileAddr *file) |
Write out an array indicating the accptable ranges of address indicies for each LAT component. | |
Variables | |
static const Filenames | rfn |
Definition of the filenames used by the parser. |
|
Decrements the index indicating depth in the hierarchy and clears the relevant addr bit.
|
|
Write out the Register and Component Descriptions.
|
|
NO_OP.
|
|
Write out the component portion of the DTD.
|
|
Print out the structures defining the Map tags associated with this component.
|
|
Peel back the hierarchy by decrementing the index and clearing one element of the addrRng array.
|
|
Write out an enumeration of the registers within a component.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
Write out the component portion of the DTD.
|
|
Print out the structures defining the XML tags associated with this component.
|
|
NO_OP.
|
|
Close out the array of Field Descriptions.
|
|
Finish off the enumeration.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
Add a declaration of the register element to the list of strings making up the DTD.
|
|
Print out the array of children for this register and the register tag.
|
|
Write out an array indicating the accptable ranges of address indicies for each LAT component.
|
|
Write out an array of Component Descriptions to complete the LAT description and close the file.
|
|
Close the file.
|
|
Write out the complete DTD and close the file.
|
|
Finish off the Map vocabulary for the rim_parser by writing out an array of tags that are children of the document element, the base tags.
|
|
Write out the eumerations giving the number of LAT components and an array connnecting these enums to the LAT component types, then close the file.
|
|
Close the file.
|
|
Write out an array of component name strings using the list of strings held in the structure, then close the file.
|
|
Write out the initTree function and close the file.
|
|
Write out the RIMtree structure and close the file.
|
|
Write out an enumeration of the component types using the list held in the file structure, then close the file.
|
|
Write out the complete DTD and close the file.
|
|
Finish off the XML vocabulary for the rim_parser by writing out an array of tags that are children of the document element, the base tags.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Initialise the file structure by opening the file, writing some intial statements to it and initialising any lists.
|
|
Adds the address range to the list.
|
|
Add the component name to the list held in the file structure.
|
|
NO_OP.
|
|
If this component has no parent then base_name is not NULL and should be added the list of base tags.
|
|
NO_OP.
|
|
Add the name and maximum ID for this component to the lists held in the file structure and update the array describing the acceptable ranges of the address indicies.
|
|
NO_OP.
|
|
Add the compoment name to the list of names held in the structure.
|
|
Add the component name to the list held in the file structure.
|
|
Add the component name to the list held in the file structure.
|
|
Add the component name to the list of held in the file structure.
|
|
If this component has no parent then base_name is not NULL and should be added the list of base tags.
|
|
NO_OP.
|
|
NO_OP.
|
|
Add an element to the array of Field Descriptions for this field.
|
|
Write out an enumeration for the field.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
Add the field name to the list of field names held in the file structure and add an XML element declaration to the list of field elements held in this structure.
|
|
Print out the structure defining the XML tag for this field.
|
|
NO_OP.
|
|
Start an array of Field Descriptions for this register, begining with the special "register" field that holds the whole register.
|
|
Start an enumeration of the fields inside this register, begining with a special "register" field that represents the whole register.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO-OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
NO_OP.
|
|
Add this register to the list of elements contained by the parent component.
|
|
Print out the structure defining the XML tag for this register.
|
|
Initial value: { "../RIM", "../src", "rimType", "regEnums", "fldEnums", "descriptions", "xml_tags", "map_tags", "rim", "map", "initRIM", "number", "addr", "parser_descriptor_p.h", "parser_tag_p.h", "map_p.h" }
|