parameters: (self, feature_class)
return_statement: return c
docstring: Returns the Code object for generating this feature.
docstring_summary: Returns the Code object for generating this feature.
docstring_tokens: Returns the Code object for generating this feature .
function: def GetCode(self, feature_class):
      """Returns the Code object for generating this feature."""
      c = Code()
      c.Append('%s* feature = new %s();' % (feature_class, feature_class))
      c.Append('feature->set_name("%s");' % self.name)
      for key in sorted(self.feature_values.keys()):
        if key in IGNORED_KEYS:
          continue;
        c.Append('feature->set_%s(%s);' % (key, self.feature_values[key]))
      return c
function_tokens: def GetCode ( self , feature_class ) : c = Code ( ) c . Append ( '%s* feature = new %s();' % ( feature_class , feature_class ) ) c . Append ( 'feature->set_name("%s");' % self . name ) for key in sorted ( self . feature_values . keys ( ) ) : if key in IGNORED_KEYS : continue c . Append ( 'feature->set_%s(%s);' % ( key , self . feature_values [ key ] ) ) return c