Lines Matching refs:name

54     """Match a requested API & profile name to a api & profile attributes of an Element"""
134 # name - feature name string (e.g. 'GL_ARB_multitexture')
143 self.name = elem.get('name')
150 self.category = self.name.split('_', 2)[1]
155 # Sorts by category of the feature name string:
170 # Sorts by extension name.
172 return feature.name
182 # then by feature name within the category,
194 # filename - name of file to generate, or None to write to stdout.
327 # genType(typeinfo,name) - generate interface for a type
329 # genEnum(enuminfo, name) - generate interface for an enum
331 # name - enum name
393 self.featureName = interface.get('name')
402 def genType(self, typeinfo, name):
404 raise UserWarning('Attempt to generate type', name,
408 def genEnum(self, enuminfo, name):
410 raise UserWarning('Attempt to generate enum', name,
414 def genCmd(self, cmd, name):
416 raise UserWarning('Attempt to generate command', name,
434 # genType(typeinfo,name) - generate interface for a type
435 # genEnum(enuminfo, name)
460 # Insert the function return type/name.
461 # For prototypes, add APIENTRY macro before the name
462 # For typedefs, add (APIENTRYP <name>) around the name and
470 # For each child element, if it's a <name> wrap in appropriate
475 if (elem.tag == 'name'):
610 def genType(self, typeinfo, name):
611 OutputGenerator.genType(self, typeinfo, name)
627 def genEnum(self, enuminfo, name):
628 OutputGenerator.genEnum(self, enuminfo, name)
631 self.enumBody += '#define ' + name.ljust(33) + ' ' + enuminfo.elem.get('value')
640 def genCmd(self, cmdinfo, name):
641 OutputGenerator.genCmd(self, cmdinfo, name)
651 # typedict - dictionary of TypeInfo objects keyed by type name
652 # groupdict - dictionary of GroupInfo objects keyed by group name
653 # enumdict - dictionary of EnumInfo objects keyed by enum name
654 # cmddict - dictionary of CmdInfo objects keyed by command name
655 # apidict - dictionary of <api> Elements keyed by API name
657 # extdict - dictionary of <extension> Elements keyed by extension name
715 # tuple (name,api). If not, the key is the name. 'name' is an
719 key = (elem.get('name'),elem.get('api'))
721 key = elem.get('name')
728 # lookupElementInfo - find a {Type|Enum|Cmd}Info object by name.
729 # If an object qualified by API name exists, use that.
730 # fname - name of type / enum / command
748 # and add 'name' attribute to each <type> tag (where missing)
749 # based on its <name> element.
752 # Required <type> attributes: 'name' or nested <name> tag contents
755 # If the <type> doesn't already have a 'name' attribute, set
756 # it from contents of its <name> tag.
757 if (type.get('name') == None):
758 type.attrib['name'] = type.find('name').text
764 # Required <group> attributes: 'name'
774 # Required <enums> attributes: 'name', 'value'
780 # and add 'name' attribute to each <command> tag (where missing)
781 # based on its <proto><name> element.
784 # Required <command> attributes: 'name' or <proto><name> tag contents
787 # If the <command> doesn't already have a 'name' attribute, set
788 # it from contents of its <proto><name> tag.
789 if (cmd.get('name') == None):
790 cmd.attrib['name'] = cmd.find('proto/name').text
812 for name in self.typedict:
813 tobj = self.typedict[name]
814 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
816 for name in self.groupdict:
817 gobj = self.groupdict[name]
818 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
820 for name in self.enumdict:
821 eobj = self.enumdict[name]
822 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
824 for name in self.cmddict:
825 cobj = self.cmddict[name]
826 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
840 # typename - name of type
869 self.markTypeRequired(typeElem.get('name'), required)
871 name = enumElem.get('name')
872 self.gen.logMsg('diag', '*** tagging enum:', name, '-> required =', required)
873 enum = self.lookupElementInfo(name, self.enumdict)
877 self.gen.logMsg('warn', '*** enum:', name , 'IS NOT DEFINED')
879 name = cmdElem.get('name')
880 self.gen.logMsg('diag', '*** tagging command:', name, '-> required =', required)
881 cmd = self.lookupElementInfo(name, self.cmddict)
896 self.gen.logMsg('warn', '*** command:', name, 'IS NOT DEFINED')
900 # api - string specifying API name being generated
915 # fname - name of feature (<type>/<enum>/<command>
975 self.generateFeature(t.get('name'), 'type', self.typedict,
978 self.generateFeature(e.get('name'), 'enum', self.enumdict,
981 self.generateFeature(c.get('name'), 'command', self.cmddict,
1022 'name =', fi.name, 'number =', fi.number,
1026 'name =', fi.name, 'number =', fi.number,
1030 'name =', fi.name,
1042 extName = ei.name
1056 # Include additional extensions if the extension name matches
1064 # Remove extensions if the name matches the regexp specified
1097 f.name)
1107 f.name)
1111 f.elem.get('name'), 'because it is not tagged for emission')
1141 funcname = cmd.find('proto/name').text
1152 pname = param.find('name')
1156 pname = type.get('name')