tools/json_schema_compiler/cpp_type_generator.py
def GetEnumValue(self, type_, enum_value):
    """Gets the enum value of the given model.Property of the given type.

    e.g VAR_STRING
    """
    value = cpp_util.Classname(enum_value.name.upper())
    prefix = (type_.cpp_enum_prefix_override or
              self.FollowRef(type_).unix_name)
    value = '%s_%s' % (prefix.upper(), value)
    # To avoid collisions with built-in OS_* preprocessor definitions, we add a
    # trailing slash to enum names that start with OS_.
    if value.startswith("OS_"):
      value += "_"
    return value
Gets the enum value of the given model.Property of the given type.

    e.g VAR_STRING
    
Gets the enum value of the given model.Property of the given type.
Gets the enum value of the given model . Property of the given type .
def GetEnumValue(self, type_, enum_value):
    value = cpp_util.Classname(enum_value.name.upper())
    prefix = (type_.cpp_enum_prefix_override or
              self.FollowRef(type_).unix_name)
    value = '%s_%s' % (prefix.upper(), value)
    if value.startswith("OS_"):
      value += "_"
    return value
def GetEnumValue ( self , type_ , enum_value ) : value = cpp_util . Classname ( enum_value . name . upper ( ) ) prefix = ( type_ . cpp_enum_prefix_override or self . FollowRef ( type_ ) . unix_name ) value = '%s_%s' % ( prefix . upper ( ) , value ) if value . startswith ( "OS_" ) : value += "_" return value
Gets the enum value of the given model.Property of the given type.
Gets the enum value of the given model . Property of the given type .
"""Gets the enum value of the given model.Property of the given type.

    e.g VAR_STRING
    """ # To avoid collisions with built-in OS_* preprocessor definitions, we add a # trailing slash to enum names that start with OS_.
self
type_
enum_value