parameters: (self)
docstring: Generate source file for enumerated types.
docstring_summary: Generate source file for enumerated types.
docstring_tokens: Generate source file for enumerated types .
function: def generateEnumeratedTypes(self):
          """Generate source file for enumerated types."""
          if not self.enumerationList_.hasEnumeratedTypes:
              return
          codeRegister = ''       # code to register the enumeration
          codeUnregister = ''     # code to unregister the enumeration
          for enumeratedTypeGroup in self.enumerationList_.enumeratedTypeGroups():
              codeRegister += self.generateEnumeratedType(enumeratedTypeGroup)
              codeUnregister += Enumerations.ENUM_UNREGISTER % {
                  'type' : enumeratedTypeGroup.type() }
          self.bufferEnumTypes_.set({
                  'codeRegister' : codeRegister,
                  'codeUnregister' : codeUnregister })
          fileName = self.rootPath_ + 'register_types.cpp'
          outputfile.OutputFile(self, fileName,
              self.enumerationList_.enumeratedTypeCopyright(), self.bufferEnumTypes_)
function_tokens: def generateEnumeratedTypes ( self ) : if not self . enumerationList_ . hasEnumeratedTypes : return codeRegister = '' # code to register the enumeration codeUnregister = '' # code to unregister the enumeration for enumeratedTypeGroup in self . enumerationList_ . enumeratedTypeGroups ( ) : codeRegister += self . generateEnumeratedType ( enumeratedTypeGroup ) codeUnregister += Enumerations . ENUM_UNREGISTER % { 'type' : enumeratedTypeGroup . type ( ) } self . bufferEnumTypes_ . set ( { 'codeRegister' : codeRegister , 'codeUnregister' : codeUnregister } ) fileName = self . rootPath_ + 'register_types.cpp' outputfile . OutputFile ( self , fileName , self . enumerationList_ . enumeratedTypeCopyright ( ) , self . bufferEnumTypes_ )