Lines Matching refs:name
53 """Match a requested API & profile name to a api & profile attributes of an Element"""
133 # name - feature name string (e.g. 'GL_ARB_multitexture')
142 self.name = elem.get('name')
149 self.category = self.name.split('_', 2)[1]
154 # Sorts by category of the feature name string:
169 # Sorts by extension name.
171 return feature.name
181 # then by feature name within the category,
193 # filename - name of file to generate, or None to write to stdout.
326 # genType(typeinfo,name) - generate interface for a type
328 # genEnum(enuminfo, name) - generate interface for an enum
330 # name - enum name
392 self.featureName = interface.get('name')
401 def genType(self, typeinfo, name):
403 raise UserWarning('Attempt to generate type', name,
407 def genEnum(self, enuminfo, name):
409 raise UserWarning('Attempt to generate enum', name,
413 def genCmd(self, cmd, name):
415 raise UserWarning('Attempt to generate command', name,
433 # genType(typeinfo,name) - generate interface for a type
434 # genEnum(enuminfo, name)
459 # Insert the function return type/name.
460 # For prototypes, add APIENTRY macro before the name
461 # For typedefs, add (APIENTRYP <name>) around the name and
469 # For each child element, if it's a <name> wrap in appropriate
474 if (elem.tag == 'name'):
601 def genType(self, typeinfo, name):
602 OutputGenerator.genType(self, typeinfo, name)
618 def genEnum(self, enuminfo, name):
619 OutputGenerator.genEnum(self, enuminfo, name)
622 self.enumBody += '#define ' + name.ljust(33) + ' ' + enuminfo.elem.get('value')
631 def genCmd(self, cmdinfo, name):
632 OutputGenerator.genCmd(self, cmdinfo, name)
642 # typedict - dictionary of TypeInfo objects keyed by type name
643 # groupdict - dictionary of GroupInfo objects keyed by group name
644 # enumdict - dictionary of EnumInfo objects keyed by enum name
645 # cmddict - dictionary of CmdInfo objects keyed by command name
646 # apidict - dictionary of <api> Elements keyed by API name
648 # extdict - dictionary of <extension> Elements keyed by extension name
706 # tuple (name,api). If not, the key is the name. 'name' is an
710 key = (elem.get('name'),elem.get('api'))
712 key = elem.get('name')
719 # lookupElementInfo - find a {Type|Enum|Cmd}Info object by name.
720 # If an object qualified by API name exists, use that.
721 # fname - name of type / enum / command
739 # and add 'name' attribute to each <type> tag (where missing)
740 # based on its <name> element.
743 # Required <type> attributes: 'name' or nested <name> tag contents
746 # If the <type> doesn't already have a 'name' attribute, set
747 # it from contents of its <name> tag.
748 if (type.get('name') == None):
749 type.attrib['name'] = type.find('name').text
755 # Required <group> attributes: 'name'
765 # Required <enums> attributes: 'name', 'value'
771 # and add 'name' attribute to each <command> tag (where missing)
772 # based on its <proto><name> element.
775 # Required <command> attributes: 'name' or <proto><name> tag contents
778 # If the <command> doesn't already have a 'name' attribute, set
779 # it from contents of its <proto><name> tag.
780 if (cmd.get('name') == None):
781 cmd.attrib['name'] = cmd.find('proto/name').text
803 for name in self.typedict:
804 tobj = self.typedict[name]
805 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
807 for name in self.groupdict:
808 gobj = self.groupdict[name]
809 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
811 for name in self.enumdict:
812 eobj = self.enumdict[name]
813 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
815 for name in self.cmddict:
816 cobj = self.cmddict[name]
817 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
831 # typename - name of type
860 self.markTypeRequired(typeElem.get('name'), required)
862 name = enumElem.get('name')
863 self.gen.logMsg('diag', '*** tagging enum:', name, '-> required =', required)
864 enum = self.lookupElementInfo(name, self.enumdict)
868 self.gen.logMsg('warn', '*** enum:', name , 'IS NOT DEFINED')
870 name = cmdElem.get('name')
871 self.gen.logMsg('diag', '*** tagging command:', name, '-> required =', required)
872 cmd = self.lookupElementInfo(name, self.cmddict)
887 self.gen.logMsg('warn', '*** command:', name, 'IS NOT DEFINED')
891 # api - string specifying API name being generated
906 # fname - name of feature (<type>/<enum>/<command>
966 self.generateFeature(t.get('name'), 'type', self.typedict,
969 self.generateFeature(e.get('name'), 'enum', self.enumdict,
972 self.generateFeature(c.get('name'), 'command', self.cmddict,
1013 'name =', fi.name, 'number =', fi.number,
1017 'name =', fi.name, 'number =', fi.number,
1021 'name =', fi.name,
1033 extName = ei.name
1047 # Include additional extensions if the extension name matches
1055 # Remove extensions if the name matches the regexp specified
1088 f.name)
1098 f.name)
1102 f.elem.get('name'), 'because it is not tagged for emission')
1132 funcname = cmd.find('proto/name').text
1143 pname = param.find('name')
1147 pname = type.get('name')