parameters: (field, cpp_type_name, array)
return_statement: return cpp_type_info
docstring: Get the C++ Type information for the given C++ type name, e.g. std::string.
docstring_summary: Get the C++ Type information for the given C++ type name, e.g. std::string.
docstring_tokens: Get the C ++ Type information for the given C ++ type name e . g . std :: string .
function: def get_cpp_type_from_cpp_type_name(field, cpp_type_name, array):
      # type: (ast.Field, str, bool) -> CppTypeBase
      """Get the C++ Type information for the given C++ type name, e.g. std::string."""
      cpp_type_info: CppTypeBase
      if cpp_type_name == 'std::string':
          cpp_type_info = _CppTypeView(field, 'std::string', 'std::string', 'StringData')
      elif cpp_type_name == 'std::vector<std::uint8_t>':
          cpp_type_info = _CppTypeVector(field)
      else:
          cpp_type_info = _CppTypeBasic(field, cpp_type_name)
  
      if array:
          cpp_type_info = _CppTypeArray(cpp_type_info, field, cpp_type_name)
  
      return cpp_type_info
function_tokens: def get_cpp_type_from_cpp_type_name ( field , cpp_type_name , array ) : # type: (ast.Field, str, bool) -> CppTypeBase cpp_type_info : CppTypeBase if cpp_type_name == 'std::string' : cpp_type_info = _CppTypeView ( field , 'std::string' , 'std::string' , 'StringData' ) elif cpp_type_name == 'std::vector<std::uint8_t>' : cpp_type_info = _CppTypeVector ( field ) else : cpp_type_info = _CppTypeBasic ( field , cpp_type_name ) if array : cpp_type_info = _CppTypeArray ( cpp_type_info , field , cpp_type_name ) return cpp_type_info